public override void Insert(TextFileWriter writer) { if (null != this.Target && null != this.PropertyGetter) { this.Value = this.PropertyGetter(this, this.Target); } else { this.Value = this.SignatureValue; } writer.AppendCSV(this.FieldType.FormatVariableLengthValue(this.Value, this.Length)); }
public override void Insert(TextFileWriter writer) { if (null != this.PropertyGetter) { this.Value = this.PropertyGetter(this, this.Target); } try { writer.AppendCSV(this.FieldType.FormatVariableLengthValue(this.Value, this.Length)); } catch (Exception exc) { throw new Exception(this.FieldInfo + ": \"" + this.Value + "\" : " + exc.ToString()); } }