0

プロパティの内容を変更する属性を作成したいと考えています。

[CleanContent]
public string address {get;set;}

address = "hello world   ";
address would change to "hello world"

私は ValidationAttribute を使用しましたが、属性を取得できるかどうかは誰でも知っていますか?

4

2 に答える 2