• chevron_right

      How to work with static anonymous functions in C# 9

      pubsub.slavino.sk / infoworldcom · Monday, 1 March, 2021 - 11:00 edit

    Anonymous functions were introduced in the C# programming language long ago. Although anonymous functions have many benefits, they are not cheap. Avoiding unnecessary allocations matters, and this is why static anonymous functions were introduced in C# 9. In C# 9 lambda or anonymous methods can have a static modifier.

    This article talks about static anonymous functions and why they are useful, using code examples to illustrate the concepts. To work with the code examples provided in this article, you should have Visual Studio 2019 installed in your system. If you don’t already have a copy, you can download Visual Studio 2019 here .

    To read this article in full, please click here


    Značky: #Rozne, #C#