I received a few comments indicating that some of them are not keywords. The intent of this post was to list the C# "features" that are in my opinion rarely used. By features, it could mean be keywords, methods or operators. I really do not want to change the title to read "Ra...
[More]
What are Flags Enums? Flags Enum types are a convenient way of storing multiple enumerated values. Assume you are working on a Shipping application in which the items that are shipped are represented by an enum type. A regular enum would be: public enum Item
{
None,
Laptop,
Hard...
[More]
Extension methods let developers add methods to an existing type without having to recompile. Extension methods are static methods that can be used as instance methods of the type that was extended. Consider an example of a helper method that is used to format a phone number. Given a number ...
[More]