public FieldInfo GetFieldInfo(int fieldIndex) { FieldInfo7 dfmField = this._volStructObj.FieldInfo[fieldIndex] as FieldInfo7; if (dfmField == null) { throw new ApplicationException("Can't get FieldInfo."); } return(new FieldInfo(dfmField)); }
public FieldInfo7 ToDfmFieldInfo() { FieldInfo7 fi = new FieldInfo7 { Name = this.Name, Caption = this.Caption, Type = this.Type, Length = this.Length, Precision = this.Precision, DateFormat = this.DateFormat, Nullability = this.IsNullable }; return(fi); }
public FieldInfo(FieldInfo7 fieldInfo) { if (null == fieldInfo) { throw new ArgumentNullException(); } this.Name = fieldInfo.Name; this.Caption = fieldInfo.Caption; this.Type = fieldInfo.Type; this.Length = fieldInfo.Length; this.Precision = fieldInfo.Precision; this.DateFormat = fieldInfo.DateFormat; this.IsNullable = fieldInfo.Nullability; }