Tag Archives: secrets

C# Behind the scenes – Local Functions

The second “Behind the scenes” article, will be about local function. This is much simple from previous post about yield keyword. In short, local function translated to a method of the class. Example 1 Advertisements

Posted in .NET, c# | Tagged , , , | 1 Comment

C# Behind the scenes – `yield`

The first “Behind the scenes” article will be about yield keyword. Lets take for example a very simple code that return numbers 1,2,3: The compiler translates this 4 lines code into an entire class.

Posted in .NET, c# | Tagged , , , , | 1 Comment

What is the @ sign before a variable name

You probably saw this at least once Or especially in generated code (like if you let R# to do some rewriting for you) you can see So, what is it? the simple answer is the ‘@’ sign can be added … Continue reading

Posted in .NET, c# | Tagged , , , , | Leave a comment