public DVar GetField(string fieldName) { int fieldIndex = DType.IndexOf(fieldName); if (fieldIndex != DType.InvalidIndex) { return(Fields[fieldIndex]); } else { return(null); } }
public int GetOrAddFieldIndex(string fieldName) { int fieldIndex = DType.IndexOf(fieldName); if (fieldIndex == DType.InvalidIndex) { SetType(new DType(fieldName, DType)); fieldIndex = DType.FieldIndex; } if (Fields[fieldIndex] == null) { Fields[fieldIndex] = new DVar(); } return(fieldIndex); }