C# 2.0 Features - Part 2.9 Static Classes

Apr
24
2011
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here, part 2.2 here, part 2.3 here, part 2.4 here, part 2.5 here, part 2.6 here, part 2.7 here and part 2.8 here. We can now mark the class with static modifier to declare that this class has no state. We need this type of classes for utility classes like Syst... [More]

C# 2.0 Features - Mission accomplished

Apr
24
2011
In Categories: .NET | Thoughts
Tags | |

C# 2.0 series has been completed, I have covered most of the features that I know and get used to deal with while coding. If there is missing feature please let me know in the comments. I will start blogging about C# 3.0 from the next post. Stay tuned.

C# 2.0 Features - Part 2.8 Null-Coalescing Operator

Sep
05
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here, part 2.2 here, part 2.3 here, part 2.4 here, part 2.5 here, part 2.6 here and part 2.7 here. You will need this a lot when assigning nullable value or object value to one of the value types. We use the "??" to replace "?:" in some cases. Let's see this e... [More]

C# 2.0 Features - Part 2.7 Nullable types

Sep
02
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here, part 2.2 here, part 2.3 here, part 2.4 here, part 2.5 here and part 2.6 here. This feature solves a lot of problems and eliminates some logic we get used to write. Before Nullable types we get used to set the value types variable that are loaded from the... [More]

C# 2.0 Features - Part 2.6 Property Access Modifiers

Aug
26
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here, part 2.2 here, part 2.3 here, part 2.4 here and part 2.5 here You should know about property to understand this article. Actually if you don't know what property is then I do recommend not to continue reading this post and start from here. In framework 1... [More]

C# 2.0 Features - Part 2.5 Partial classes

May
22
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here, part 2.2 here, part 2.3 here and part 2.4 here Partial classes are brilliant idea. In my opinion it is one of the features that increases the productivity. Simply, it allows you to define one class in different files which helps a lot when you are using ... [More]

C# 2.0 Features - Part 2.4 Iterators

Mar
15
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here, part 2.2 here and part 2.3 here It is not a new feature as well in C#, Although .NET framework adds keyword to provide extra functionality. There are iterators in C++, C++ iterator is the C# enumerator. Anyway, this is not about C++ let's see what a... [More]

C# 2.0 Features - Part 2.3 Generics

Mar
08
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here, part 2.1 here and part 2.2 here This is the second feature in this series that has an equivalent in C++ which called template parameters. Although there is a lot of differences between both but they still have the same usage. in case you are interested to know t... [More]

C# 2.0 Features - Part 2.2 Anonymous Methods

Feb
19
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here and part 2.1 here I always thought that Anonymous Methods came out with .NET framework version 3.0  when I dig more I reliased that it came up with version 2.0. Anonymous Method means that you can create a method - block of code - without giving it a name and ex... [More]

C# 2.0 Features - Part 2.1

Jan
23
2010
In Categories: .NET | CLR
Tags | |

You can see part 1 here C# 2.0 came out with many features (Aliases, Anonymous Methods, Generics, Iterators, Partial Types, Property Access Modifiers, Nullable types, Conditional Operator, Null-Coalescing Operator, and Static Classes). I will talk about each feature in a separate post and how can w... [More]