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]
02c0ea57-9b54-4f82-8fbc-ec53fefaa56e|0|.0
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.
8aa32ce6-0b7c-48c9-8c49-6ec2ded72bba|0|.0
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]
4979bcef-1ea9-4adf-8346-8a9250f83aa0|0|.0
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]
92e8f6e6-e5b7-4ba0-b641-97a3ba153063|0|.0
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]
34ffed6b-60ae-4ed8-a5fd-9a11017e176e|0|.0
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]
1698ef71-f7bc-4e55-b3cf-251f2c21c555|0|.0
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]
5cb97aa0-99ac-4283-bcef-f3c44e647adf|0|.0
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]
9089cfc4-f88c-4850-b3e4-5a4c910e6d83|0|.0
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]
ca06ec7d-3bc3-400a-ab94-00db9d9437bc|0|.0
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]
c5c0559e-a4d1-4535-bab5-98278bf7a364|1|4.0