The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

EnumerableEx Class

Summary

Enumerable extensions.
Namespace
DynamicData.Kernel
Base Types
  • object
graph BT Type-->Base0["object"] Type["EnumerableEx"] class Type type-node

Syntax

public static class EnumerableEx

Methods

Name Value Summary
AsArray<T>(IEnumerable<T>) T[]
Casts the enumerable to an array if it is already an array. Otherwise call ToArray.
static
AsList<T>(IEnumerable<T>) List<T>
Casts the enumerable to an array if it is already an array. Otherwise call ToList.
static
Duplicates<T, TValue>(IEnumerable<T>, Func<T, TValue>) IEnumerable<T>
Returns any duplicated values from the source.
static
IndexOfMany<T>(IEnumerable<T>, IEnumerable<T>) IEnumerable<ItemWithIndex<T>>
Finds the index of many items as specified in the secondary enumerable.
static
IndexOfMany<TObject, TResult>(IEnumerable<TObject>, IEnumerable<TObject>, Func<TObject, int, TResult>) IEnumerable<TResult>
Finds the index of many items as specified in the secondary enumerable.
static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.