what is the advantage of DisplayName attribute than Display attribute?

The result of [DisplayName("foo")] and [Display(Name="foo")] for @Html.LabelFor(x => x.MyProperty) is same. both generate . what is the advantage of DisplayName?

10
задан Ghooti Farangi 9 March 2011 в 19:12
поделиться