public bool Equals(EntityAttributeModel other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(EntityGuid.Equals(other.EntityGuid) && AttributeGuid.Equals(other.AttributeGuid) && string.Equals(TagName, other.TagName)); }
public override bool Equals(object otherObject) { if (otherObject is AttributeUpdate) { var otherUpdate = otherObject as AttributeUpdate; return(EntityGuid.Equals(otherUpdate.EntityGuid) && ComponentName.Equals(otherUpdate.ComponentName) && AttributeName.Equals(otherUpdate.AttributeName) && NewValue.Equals(otherUpdate.NewValue)); } return(false); }