本文整理匯總了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;
}