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)); } }
public bool Equals(FieldIdentifier other) { return(FieldSourceName.Equals(other.FieldSourceName, StringComparison.InvariantCultureIgnoreCase) && FieldName.Equals(other.FieldName, StringComparison.InvariantCultureIgnoreCase)); }