public void Validate() { Name.ValidateRequired("Name"); Reaction.ValidateOptional("Reaction"); FirstObserved.ValidateOptional("FirstObserved"); AllergenType.ValidateOptional("AllergenType"); AllergenCode.ValidateOptional("AllergenCode"); TreatmentProvider.ValidateOptional("TreatmentProvider"); Treatment.ValidateOptional("Treatment"); IsNegated.ValidateOptional("IsNegated"); }
public bool Equals(FormatConditionElement other) { if (ReferenceEquals(other, null)) { return(false); } else if (ReferenceEquals(other, this)) { return(true); } else { return(Name.Equals(other.Name) && IsNegated.Equals(other.IsNegated) && Content.Equals(other.Content)); } }
#pragma warning disable CS1591 public override int GetHashCode() { return(Name.GetHashCode() ^ IsNegated.GetHashCode() ^ Content.GetHashCode()); }