Thursday, March 28, 2019

Hidden Features of C#?

This came to my mind after I learned the following from this question:



where T : struct


We, C# developers, all know the basics of C#. I mean declarations, conditionals, loops, operators, etc.




Some of us even mastered the stuff like Generics, anonymous types, lambdas, LINQ, ...



But what are the most hidden features or tricks of C# that even C# fans, addicts, experts barely know?







Keywords






Attributes





Syntax






Language Features





Visual Studio Features





Framework






Methods and Properties





Tips & Tricks





  • Nice method for event handlers by Andreas H.R. Nilsson

  • Uppercase comparisons by John

  • Access anonymous types without reflection by dp

  • A quick way to lazily instantiate collection properties by Will

  • JavaScript-like anonymous inline-functions by roosteronacid



Other

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...