Categories

Oct 18, 2019 in C Sharp (C#)
Q: Explain Anonymous type in C#?

1 Answer

Oct 18, 2019
This is being added in C# 3.0 version. This feature enables us to create an object at compile time. Below is the sample code for the same –

Var myTestCategory = new { CategoryId = 1, CategoryName = “Category1”};
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
Jun 16 in C Sharp (C#)
Jun 16 in C Sharp (C#)
Feb 16 in C Sharp (C#)
...