コード例 #1
0
            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);
            }
コード例 #2
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (Code != null)
                {
                    result.AddRange(Code.Validate());
                }
                if (SeverityElement != null)
                {
                    result.AddRange(SeverityElement.Validate());
                }

                return(result);
            }