本文整理汇总了C#中VList类的典型用法代码示例。如果您正苦于以下问题:C# VList类的具体用法?C# VList怎么用?C# VList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VList类属于命名空间,在下文中一共展示了VList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MaybeRemoveNoOpFromRunSeq
public static VList<LNode> MaybeRemoveNoOpFromRunSeq(VList<LNode> runSeq)
{
// Delete final no-op in case of e.g. Foo()::id; => #runSequence(var id = Foo(); id)
if (runSeq.Count > 1 && runSeq.Last.IsId)
return runSeq.WithoutLast(1);
return runSeq;
}
示例2: WithTrailingTrivia
/// <summary>Removes all existing trailing trivia from an attribute list and adds a new list of trailing trivia.</summary>
/// <remarks>This method has a side-effect of recreating the #trivia_trailing
/// node, if there is one, at the end of the attribute list. If <c>trivia</c>
/// is empty then all calls to #trivia_trailing are removed.</remarks>
public static VList<LNode> WithTrailingTrivia(this VList<LNode> attrs, VList<LNode> trivia)
{
var attrs2 = WithoutTrailingTrivia(attrs);
if (trivia.IsEmpty)
return attrs2;
return attrs2.Add(LNode.Call(S.TriviaTrailing, trivia));
}
示例3: CodeGeneratorForMatchCase
internal CodeGeneratorForMatchCase(IMacroContext context, LNode input, VList<LNode> handler)
{
_context = context;
_input = input;
_handler = handler;
var @break = LNode.Call(CodeSymbols.Break);
if (_handler.IsEmpty || !_handler.Last.Equals(@break))
_handler.Add(@break);
}
示例4: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VIndividualCustomer> Convert(WsProxy.VIndividualCustomer[] items)
{
VList<VIndividualCustomer> outItems = new VList<VIndividualCustomer>();
foreach(WsProxy.VIndividualCustomer item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例5: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VEmployeeDepartmentHistory> Convert(WsProxy.VEmployeeDepartmentHistory[] items)
{
VList<VEmployeeDepartmentHistory> outItems = new VList<VEmployeeDepartmentHistory>();
foreach(WsProxy.VEmployeeDepartmentHistory item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例6: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VSalesPerson> Convert(WsProxy.VSalesPerson[] items)
{
VList<VSalesPerson> outItems = new VList<VSalesPerson>();
foreach(WsProxy.VSalesPerson item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例7: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VSalesPersonSalesByFiscalYears> Convert(WsProxy.VSalesPersonSalesByFiscalYears[] items)
{
VList<VSalesPersonSalesByFiscalYears> outItems = new VList<VSalesPersonSalesByFiscalYears>();
foreach(WsProxy.VSalesPersonSalesByFiscalYears item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例8: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VProductModelInstructions> Convert(WsProxy.VProductModelInstructions[] items)
{
VList<VProductModelInstructions> outItems = new VList<VProductModelInstructions>();
foreach(WsProxy.VProductModelInstructions item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例9: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VAdditionalContactInfo> Convert(WsProxy.VAdditionalContactInfo[] items)
{
VList<VAdditionalContactInfo> outItems = new VList<VAdditionalContactInfo>();
foreach(WsProxy.VAdditionalContactInfo item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例10: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VStateProvinceCountryRegion> Convert(WsProxy.VStateProvinceCountryRegion[] items)
{
VList<VStateProvinceCountryRegion> outItems = new VList<VStateProvinceCountryRegion>();
foreach(WsProxy.VStateProvinceCountryRegion item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例11: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VVendor> Convert(WsProxy.VVendor[] items)
{
VList<VVendor> outItems = new VList<VVendor>();
foreach(WsProxy.VVendor item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例12: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VEmployee> Convert(WsProxy.VEmployee[] items)
{
VList<VEmployee> outItems = new VList<VEmployee>();
foreach(WsProxy.VEmployee item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例13: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VIndividualDemographics> Convert(WsProxy.VIndividualDemographics[] items)
{
VList<VIndividualDemographics> outItems = new VList<VIndividualDemographics>();
foreach(WsProxy.VIndividualDemographics item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例14: Convert
/// <summary>
/// Convert a collection from the ws proxy to a nettiers collection.
/// </summary>
public static VList<VJobCandidateEmployment> Convert(WsProxy.VJobCandidateEmployment[] items)
{
VList<VJobCandidateEmployment> outItems = new VList<VJobCandidateEmployment>();
foreach(WsProxy.VJobCandidateEmployment item in items)
{
outItems.Add(Convert(item));
}
return outItems;
}
示例15: Step_1_SelectAll_Generated
/// <summary>
/// Selects a page of VIndividualDemographics objects from the database.
/// </summary>
private void Step_1_SelectAll_Generated()
{
int count = -1;
mockCollection = DataRepository.VIndividualDemographicsProvider.GetPaged(null, 0, 10, out count);
Assert.IsTrue(count >= 0, "Select Query Failed with GetPaged");
System.Console.WriteLine("DataRepository.VIndividualDemographicsProvider.GetPaged():");
System.Console.WriteLine(mockCollection);
}