var data = new { ID = 101, Name = "John", IsActive = true, Marks = new[] { 85, 90, 95 } }; Console.WriteLine($"ID: {data.ID}, Active: {data.IsActive}, Marks: {string.Join(", ", data.Marks)}");