Quiz Yourself: Additional Features
Test your knowledge of the C# programming language additional features.
We'll cover the following...
We'll cover the following...
Technical Quiz
1.
Which is the correct syntax for creating an object of an anonymous type in C#?
A.
var anonObj = new { Message = "Hello World!" };
B.
AnonymousType anonObj = new AnonymousType() { Message = "Hello World!" };
C.
var anonObj = new AnonymousType() { Message = "Hello World!" };
D.
var anonObj = new(Message = "Hello World!");
1 / 12