Anonymous Type in C#
In C#, Anonymous Type can encapsulate the properties for more code readability. These types can store only properties with a restriction that they can be read only. Note, it also lives for a short-term say within the function scope. Let us see a C# Example here to explore it.