Пример #1
0
        public override void Insert(ExcelFileWriter writer)
        {
            if (null != this.Target && null != this.PropertyGetter)
            {
                this.Value = this.PropertyGetter(this, this.Target);
            }
            else
            {
                this.Value = this.SignatureValue;
            }

            writer.Append(this.Value);
        }
 public override void Insert(ExcelFileWriter writer)
 {
     if (null != this.PropertyGetter)
     {
         this.Value = this.PropertyGetter(this, this.Target);
         try
         {
             writer.Append(this.Value);
         }
         catch (Exception exc)
         {
             throw new Exception(this.FieldInfo + ": \"" + this.Value + "\" : " + exc.ToString());
         }
     }
 }