C# Tips

Today's C# Quiz

Quiz

What is wrong in the following Anonymous Type example?

Class name was omitted after new keyword
var keyword cannot be used for variable person
Property Age (person.Age = 30) cannot be changed
Instead of comma, semi-colon should be used after each property set within new {}

Tip

Answer