本文整理汇总了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;
}
示例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;
}
示例3: Validate
public override ErrorList Validate()
{
var result = new ErrorList();
result.AddRange(base.Validate());
return result;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}