using System;
using System.Linq;
var dictionary = new[]
{
new
Name = "Name1",
Surname = "Surname1"
}
}.ToDictionary(x => x.Name, x => x);
Console.WriteLine(dictionary.DumpText());
dictionary.DumpConsole();
dictionary.DumpDebug();
dictionary.DumpTrace();