Some C# Tips in 100 Chars.

Once you assign a value to a BigInteger variable, it becomes immutable (cannot change)

‘var’ is not really a C# keyword. You can name variables & parameters as “var” and your compiler won’t complain

Enum does not mean Enumerator. Enum is a custom data type whereas Enumerator is a class implementing IEnumerable

Did you know that enum types cannot be written generically. Only classes, interfaces & delegates can be

You should design all custom attributes as sealed .GetValues(typeof(SomeEnum))){ }

Delegates are immutable, so doing del += CallMethod creates a new delegate instance

Advertisements
By Sriramjithendra Posted in C#.NET

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s