0 votes
in C Sharp by
Explain Anonymous type in C#?

1 Answer

0 votes
by
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”};

Related questions

0 votes
asked Jun 16, 2020 in C Sharp by Hodge
0 votes
asked Jun 16, 2020 in C Sharp by Hodge
...