How to Create Composite Anonymous Type in C#?

Below is a sample code snippet demonstrating how to How to Create Composite Anonymous Type in C#?

How to Create Composite Anonymous Type in C#?

using System;

using System.Collections.Generic;

using System.Data;

using System.Linq;

namespace AbundantCode

{

internal class Program

{

//How to Create Composite Anonymous Type in C#

private static void Main(string[] args)

{

var dena = new { Website = "Abundantcode.com", Category = "Programming" };

Console.WriteLine(dena.Website);

Console.ReadLine();

}

}

}
How to Create Composite Anonymous Type in C#?