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