Пример #1
0
            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);
            }