本文整理汇总了C#中ObservableCollection.AsChangeResistantEnumerableWithIndex方法的典型用法代码示例。如果您正苦于以下问题:C# ObservableCollection.AsChangeResistantEnumerableWithIndex方法的具体用法?C# ObservableCollection.AsChangeResistantEnumerableWithIndex怎么用?C# ObservableCollection.AsChangeResistantEnumerableWithIndex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObservableCollection
的用法示例。
在下文中一共展示了ObservableCollection.AsChangeResistantEnumerableWithIndex方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VisitResultOperators
protected virtual void VisitResultOperators (ObservableCollection<ResultOperatorBase> resultOperators, QueryModel queryModel)
{
ArgumentUtility.CheckNotNull ("queryModel", queryModel);
ArgumentUtility.CheckNotNull ("resultOperators", resultOperators);
foreach (var indexValuePair in resultOperators.AsChangeResistantEnumerableWithIndex())
indexValuePair.Value.Accept (this, queryModel, indexValuePair.Index);
}
示例2: VisitBodyClauses
protected virtual void VisitBodyClauses (ObservableCollection<IBodyClause> bodyClauses, QueryModel queryModel)
{
ArgumentUtility.CheckNotNull ("queryModel", queryModel);
ArgumentUtility.CheckNotNull ("bodyClauses", bodyClauses);
foreach (var indexValuePair in bodyClauses.AsChangeResistantEnumerableWithIndex())
indexValuePair.Value.Accept (this, queryModel, indexValuePair.Index);
}
示例3: VisitOrderings
protected virtual void VisitOrderings (ObservableCollection<Ordering> orderings, QueryModel queryModel, OrderByClause orderByClause)
{
ArgumentUtility.CheckNotNull ("queryModel", queryModel);
ArgumentUtility.CheckNotNull ("orderByClause", orderByClause);
ArgumentUtility.CheckNotNull ("orderings", orderings);
foreach (var indexValuePair in orderings.AsChangeResistantEnumerableWithIndex())
indexValuePair.Value.Accept (this, queryModel, orderByClause, indexValuePair.Index);
}
示例4: VisitBodyClauses
/// <summary>Visits body clauses.</summary>
/// <param name="bodyClauses">Body clause to be visited.</param>
/// <param name="queryModel">Query model containing given body clause.</param>
protected override void VisitBodyClauses(ObservableCollection<IBodyClause> bodyClauses, Remotion.Linq.QueryModel queryModel)
{
foreach (var indexValuePair in bodyClauses.AsChangeResistantEnumerableWithIndex())
{
indexValuePair.Value.Accept(this, queryModel, indexValuePair.Index);
}
}