/// <summary> /// Returns true if InlineResponseDefault6Value instances are equal /// </summary> /// <param name="other">Instance of InlineResponseDefault6Value to be compared</param> /// <returns>Boolean</returns> public bool Equals(InlineResponseDefault6Value other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( LogicalName == other.LogicalName || LogicalName != null && LogicalName.Equals(other.LogicalName) ) && ( MetadataId == other.MetadataId || MetadataId != null && MetadataId.Equals(other.MetadataId) ) && ( OptionSet == other.OptionSet || OptionSet != null && OptionSet.Equals(other.OptionSet) )); }
public override bool Equals(object obj) { if (obj is EntityModel entityModel && !string.IsNullOrWhiteSpace(entityModel.LogicalName)) { return(LogicalName?.Equals(entityModel.LogicalName, StringComparison.CurrentCultureIgnoreCase) == true); } return(false); }