class Test { public string Key { get; set; } } var x = new Test { Key = "value" };