display(new [] {"hello", "world"} ); Enumerable.Range(1, 5) var dictionary = new Dictionary { ["zero"] = 0, ["one"] = 1, ["two"] = 2 }; dictionary class Person { public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } } display(new Person { FirstName = "Mitch", LastName = "Buchannon", Age = 42} ); var groupOfPeople = new [] { new Person { FirstName = "Mitch", LastName = "Buchannon", Age = 42 }, new Person { FirstName = "Hobie ", LastName = "Buchannon", Age = 23 }, new Person { FirstName = "Summer", LastName = "Quinn", Age = 25 }, new Person { FirstName = "C.J.", LastName = "Parker", Age = 23 }, }; display(groupOfPeople); display(groupOfPeople.ToDictionary(p => $"{p.FirstName}")); class Person { public string FirstName { get; set; } public string LastName { get; set; } public int Age { get; set; } public List Friends { get; } = new List(); } var mitch = new Person { FirstName = "Mitch", LastName = "Buchannon", Age = 42 }; var hobie = new Person { FirstName = "Hobie ", LastName = "Buchannon", Age = 23 }; var summer = new Person { FirstName = "Summer", LastName = "Quinn", Age = 25 }; var cj = new Person { FirstName = "C.J.", LastName = "Parker", Age = 23 }; mitch.Friends.AddRange(new [] { hobie, summer, cj }); hobie.Friends.AddRange(new [] { mitch, summer, cj }); summer.Friends.AddRange(new [] { mitch, hobie, cj }); cj.Friends.AddRange(new [] { mitch, hobie, summer }); var groupOfPeople = new List { mitch, hobie, summer, cj }; display(groupOfPeople); using Microsoft.DotNet.Interactive.Formatting; Formatter.Register((person, writer) => { writer.Write("person"); }, mimeType: "text/plain"); groupOfPeople Formatter.ResetToDefault(); Formatter.Register((person, writer) => { writer.Write(person.FirstName); }, mimeType: "text/plain"); groupOfPeople using static Microsoft.DotNet.Interactive.Formatting.PocketViewTags; Formatter.ResetToDefault(); Formatter.Register>((people, writer) => { foreach (var person in people) { writer.Write( span( b(person.FirstName), " ", i($"({person.Age} years old and has {person.Friends.Count} friends)"), br)); } }, mimeType: "text/html"); groupOfPeople