我正在使用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**
}
}
}
如上所示,我想在属性的setter方法中访问自定义属性值。 我该如何实现呢?