protected FieldReferenceBase(FieldReferenceBase fieldReference) { if (fieldReference is null) { throw new ArgumentNullException(nameof(fieldReference)); } TypeName = fieldReference.TypeName; FieldName = fieldReference.FieldName; }
protected bool IsEqualTo(FieldReferenceBase other) { if (other is null) { return(false); } if (IsReferenceEqualTo(other)) { return(true); } return(other.TypeName.Equals(TypeName, StringComparison.Ordinal) && other.FieldName.Equals(FieldName, StringComparison.Ordinal)); }