Esempio n. 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));
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     return(HashCode.Combine(FieldSourceName.ToLower(), FieldName.ToLower()));
 }
Esempio n. 3
0
 public bool Equals(FieldIdentifier other)
 {
     return(FieldSourceName.Equals(other.FieldSourceName, StringComparison.InvariantCultureIgnoreCase) &&
            FieldName.Equals(other.FieldName, StringComparison.InvariantCultureIgnoreCase));
 }