public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (Coding != null) { Coding.ForEach(elem => result.AddRange(elem.Validate())); } if (TextElement != null) { result.AddRange(TextElement.Validate()); } if (PrimaryElement != null) { result.AddRange(PrimaryElement.Validate()); } return(result); }