how to get display name attribute c# code example Example: displayname c# [DisplayName("foo")] public string MyProperty { get; set; }