Anonymous Type

A compiler-created read-only type defined from an object initializer.

What is Anonymous Type in C#?

Anonymous Type — A compiler-created read-only type defined from an object initializer.

class OrderView
{
    object summary = new { Item = "Tea", Quantity = 2 };
}

Level: Freelancer · More C# terms at this level

Updated