当前位置: 首页>>代码示例>>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;未经允许,请勿转载。