Foo f; f.Name = ""; // error CS0165: Use of unassigned local variable 'f' public struct Foo { public string Name { get; set; } }