public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (SeverityElement != null) { result.AddRange(SeverityElement.Validate()); } if (Type != null) { result.AddRange(Type.Validate()); } if (DetailsElement != null) { result.AddRange(DetailsElement.Validate()); } if (LocationElement != null) { LocationElement.ForEach(elem => result.AddRange(elem.Validate())); } return(result); }
public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (CategoryElement != null) { result.AddRange(CategoryElement.Validate()); } if (Code != null) { result.AddRange(Code.Validate()); } if (StatusElement != null) { result.AddRange(StatusElement.Validate()); } if (ProhibitedElement != null) { result.AddRange(ProhibitedElement.Validate()); } if (Timing != null) { result.AddRange(Timing.Validate()); } if (Location != null) { result.AddRange(Location.Validate()); } if (Performer != null) { Performer.ForEach(elem => result.AddRange(elem.Validate())); } if (Product != null) { result.AddRange(Product.Validate()); } if (DailyAmount != null) { result.AddRange(DailyAmount.Validate()); } if (Quantity != null) { result.AddRange(Quantity.Validate()); } if (DetailsElement != null) { result.AddRange(DetailsElement.Validate()); } if (ActionTaken != null) { ActionTaken.ForEach(elem => result.AddRange(elem.Validate())); } if (NotesElement != null) { result.AddRange(NotesElement.Validate()); } return(result); }