FileHelpers を使用して固定長ファイルを書き出しています。
public class MyFileLayout
{
[FieldFixedLength(2)]
private string prefix;
[FieldFixedLength(12)]
private string customerName;
public string CustomerName
{
set
{
this.customerName= value;
**Here I require to get the customerName's FieldFixedLength attribute value**
}
}
}
上記のように、プロパティの set メソッド内でカスタム属性値にアクセスしたいと思います。
どうすればこれを達成できますか?