Login
Remember
Register
Ask a Question
Explain Anonymous type in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Explain Anonymous type in C#?
anonymous-type
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
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”};
...