예제 #1
0
 private bool Equals(DbaseField other) =>
 other != null &&
 Name.Equals(other.Name) &&
 FieldType.Equals(other.FieldType) &&
 Offset.Equals(other.Offset) &&
 Length.Equals(other.Length) &&
 DecimalCount.Equals(other.DecimalCount);
예제 #2
0
 private bool Equals(DbaseField other) =>
 other != null &&
 Name.Equals(other.Name) &&
 // HACK: Because legacy represents date times as characters - so why bother with DateTime support?
 (
     (
         (FieldType == DbaseFieldType.Character || FieldType == DbaseFieldType.DateTime)
         &&
         (other.FieldType == DbaseFieldType.Character || other.FieldType == DbaseFieldType.DateTime)
     )
     ||
     FieldType == other.FieldType
 ) &&
 Offset.Equals(other.Offset) &&
 Length.Equals(other.Length) &&
 DecimalCount.Equals(other.DecimalCount);