示例#1
0
 public override bool Equals(object?obj)
 {
     if (obj is FieldIdentifier identifier)
     {
         return(FieldSourceName.Equals(identifier.FieldSourceName, StringComparison.InvariantCultureIgnoreCase) &&
                FieldName.Equals(identifier.FieldName, StringComparison.InvariantCultureIgnoreCase));
     }
     else
     {
         return(base.Equals(obj));
     }
 }
示例#2
0
 public bool Equals(FieldIdentifier other)
 {
     return(FieldSourceName.Equals(other.FieldSourceName, StringComparison.InvariantCultureIgnoreCase) &&
            FieldName.Equals(other.FieldName, StringComparison.InvariantCultureIgnoreCase));
 }