Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Explain Anonymous type in C#?
Home
C Sharp
Explain Anonymous type in C#?
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”};
Related questions
0
votes
Q: What Value type variables in C# are derived from the class System.ValueType?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment is correct about value type variables in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment is correct about reference type variables in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment is correct about Object Type in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment is correct about dynamic Type in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment converts a type to a Boolean value, where possible in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment converts a type to a byte value in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment converts a type to a single Unicode character, where possible in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment converts a floating point or integer type to a decimal type in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#csharp
0
votes
Q: Which statment converts a type to a double type in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#c#
#csharp
0
votes
Q: Which statment converts a type to a 16-bit integer in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
#c#
#csharp
0
votes
Q: Which statment converts a type to a 32-bit integer in C#?
asked
Jun 16, 2020
in
C Sharp
by
Hodge
csharp
c#
+1
vote
Q: Explain Reflection in C#.
asked
Apr 9, 2020
in
C Sharp
by
GeorgeBell
#c#
#csharp
0
votes
Q: Explain the features of C#?
asked
Feb 18, 2020
in
C Sharp
by
rahuljain1
#c-sharp-features
0
votes
Q: Explain difference between "continue" and "break" statements in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
#c#-continue
...