c# getter setter shorthand code example Example: C# short getter setter public string fname {get; set;}