Tag: var
Anonymous Type Example
The simplest example of the anonymous type is to use the var keyword and assign the non-null initial value to the variable declared with var keyword. Below is a sample soucrecode demonstrating the simple anonymous type example. The above code is similar to the code written like below.