Defining Simple Anoymous Type in C#

To define an anonymous type in C# , we can use the var keyword . The syntax for defining the anonymous type in C# is as follows

var <variableName> = <Non-NULL Value>


var WebsiteName = "";

In the MSIL , the above code is similar to

string WebsiteName = "";
Tags :

Leave Your Comment

Liked this content?. Please spread the word :)