當前位置: 首頁>>代碼示例>>C#>>正文


C# ErrorList.AddRange方法代碼示例

本文整理匯總了C#中ErrorList.AddRange方法的典型用法代碼示例。如果您正苦於以下問題:C# ErrorList.AddRange方法的具體用法?C# ErrorList.AddRange怎麽用?C# ErrorList.AddRange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ErrorList的用法示例。


在下文中一共展示了ErrorList.AddRange方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Validate

        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if(Numerator != null )
                result.AddRange(Numerator.Validate());
            if(Denominator != null )
                result.AddRange(Denominator.Validate());

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:13,代碼來源:Ratio.cs

示例2: Validate

        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if(Low != null )
                result.AddRange(Low.Validate());
            if(High != null )
                result.AddRange(High.Validate());

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:13,代碼來源:Range.cs

示例3: Validate

        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:8,代碼來源:Integer.cs

示例4: Validate

        public virtual ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(ValidateRules());

            if(Extension != null )
                Extension.ForEach(elem => result.AddRange(elem.Validate()));
            if(LocalIdElement != null )
                result.AddRange(LocalIdElement.Validate());

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:13,代碼來源:Element.cs

示例5: ValidateRules

        internal override ErrorList ValidateRules()
        {
            var result = new ErrorList();
            result.AddRange(base.ValidateRules());

            if (Content == null)
                result.Add("Entry must contain (possibly 0-length) data");

            if (ContentType == null)
                result.Add("Entry must contain a contentType");

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:13,代碼來源:Binary.cs

示例6: Validate

            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if(ImportElement != null )
                    ImportElement.ForEach(elem => result.AddRange(elem.Validate()));
                if(Include != null )
                    Include.ForEach(elem => result.AddRange(elem.Validate()));
                if(Exclude != null )
                    Exclude.ForEach(elem => result.AddRange(elem.Validate()));

                return result;
            }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:15,代碼來源:ValueSet.cs

示例7: Validate

            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if(DoseSequenceElement != null )
                    result.AddRange(DoseSequenceElement.Validate());
                if(DescriptionElement != null )
                    result.AddRange(DescriptionElement.Validate());
                if(Authority != null )
                    result.AddRange(Authority.Validate());
                if(SeriesElement != null )
                    result.AddRange(SeriesElement.Validate());
                if(SeriesDosesElement != null )
                    result.AddRange(SeriesDosesElement.Validate());
                if(DoseTarget != null )
                    result.AddRange(DoseTarget.Validate());
                if(DoseStatus != null )
                    result.AddRange(DoseStatus.Validate());
                if(DoseStatusReason != null )
                    result.AddRange(DoseStatusReason.Validate());

                return result;
            }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:25,代碼來源:Immunization.cs

示例8: Validate

            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if(DescriptionElement != null )
                    result.AddRange(DescriptionElement.Validate());
                if(Procedure != null )
                    result.AddRange(Procedure.Validate());
                if(Additive != null )
                    Additive.ForEach(elem => result.AddRange(elem.Validate()));

                return result;
            }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:15,代碼來源:Specimen.cs

示例9: Validate

        public static ErrorList Validate(this IEnumerable<Tag> tags)
        {
            ErrorList result = new ErrorList();

            foreach (var tag in tags) result.AddRange(tag.Validate());

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:8,代碼來源:Tag.cs

示例10: Validate

            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if(Location != null )
                    result.AddRange(Location.Validate());
                if(Period != null )
                    result.AddRange(Period.Validate());

                return result;
            }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:13,代碼來源:Encounter.cs

示例11: Validate

        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if(SystemElement != null )
                result.AddRange(SystemElement.Validate());
            if(ValueElement != null )
                result.AddRange(ValueElement.Validate());
            if(UseElement != null )
                result.AddRange(UseElement.Validate());
            if(Period != null )
                result.AddRange(Period.Validate());

            return result;
        }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:17,代碼來源:Contact.cs

示例12: Validate

            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if(TypeElement != null )
                    result.AddRange(TypeElement.Validate());
                if(Target != null )
                    result.AddRange(Target.Validate());

                return result;
            }
開發者ID:avontd2868,項目名稱:vista-novo-fhir,代碼行數:13,代碼來源:Procedure.cs


注:本文中的ErrorList.AddRange方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。