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 type.
We can write this code to define new object
1 public class Product
2 {
3 public int Amount {get; set;}
4 public string Name {get; set;}
5 }
6 Product product = new Product
7 {
8 Amount = 108, Name = "Sugar"
9 };
To have the strongly anonymous type we can simply use this
1 var product = new
2 {
3 Amount = 108, Name = “Sugar"
4};
As we can see, we don't have to define a class called Product and then define an object to have instance from it. We simply create var object and then use Object Initializers to initialize the fields that we want. Here you can have object initialized from anonymous class that has been implicitly created and contains two value type variables which can be accessed normally through the product variable.