Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の値を設定する方法があるかどうかを知りたいです(データ注釈を使用している可能性があります)
property.DisplayPropertyName
.
何かアイデアはありますか?
それはとても簡単です:
[DisplayName("RenamedProperty")]
説明を追加することもできます
[Description("Demonstrates DisplayNameAttribute.")]
または、リソースを参照して、選択した言語に適応させたい場合があります。
[Display(Name = "Description", ResourceType = typeof(Resources))]