public override bool Equals(object obj) { var other = obj as Component3; if (other == null) { return(false); } if (AuditedComponent != null ? !AuditedComponent.Equals(other.AuditedComponent) : other.AuditedComponent != null) { return(false); } if (Str1 != null ? !Str1.Equals(other.Str1) : other.Str1 != null) { return(false); } return(true); }