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 0 here, part 1 here, part 2 here, part 3 here, part 4 here and part 5 here
This feature adds extension to your design. if we have closed assembly and we need to add function to this class. We can use extension methods as we see in the next piece of code
 ...
[More]
1c015a43-5b91-4f92-b476-52d9f23c7f27|0|.0
You can see part 0 here, part 1 here, part 2 here, part 3 here and part 4 here
In my opinion, this is the last feature view which increases the developer's productivity. You can simply create an object without naming it. You must use Implicit Typing while defining the anonymous ...
[More]
278c3d1c-3ff7-4ddf-b94f-d6309ec520dd|0|.0
You can see part 0 here, part 1 here, part 2 here and part 3 here
This is another feature that will increase the flexibility and the productivity for the developer. Instead of typing this line of code
1 Dictionary<string, string> foo = ...
[More]
7493ee6a-d9fd-4948-8309-6bba9157e9bb|0|.0
You can see part 0 here, part 1 here and part 2 here
This is also feature that helps the developer to be more productive. Let's see how we can use it.
1 List<int> digits = new List<int> { 0, 1, 2, 3 };
As you can see, we just fill in t...
[More]
ea2f17c9-4e30-4acf-8701-8679eb239294|0|.0
You can see part 0 here and part 1 here
This feature allows properties to be set with constructor call. I consider this as one of the features that increases the developer productivity. Also you can use it with anonymous objects (we will explain them later).
If we have this class
...
[More]
92e63c98-ef3e-43f1-a793-103704fefb74|0|.0
To you can see part 0 here
In the past we got used to write property like this
1 public class Person
2 {
3 string _firstName;
4 string...
[More]
b6f631c2-3e21-456f-803d-285bd1a75bae|0|.0
You can see C# 2.0 Features series starting from here
C# 3.0 comes out with many features. I would like to classify them as features that Increased developer's productivity, Extensibility concepts and Functional programming Concepts. The first group of features are Automatic Properties, Object Init...
[More]
a503b6fb-e106-43c9-8923-82a8423f0ed3|1|3.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