EnumerableExtensions

Name Value
Assembly Catel.Core
Namespace Catel.Linq
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public static class EnumerableExtensions

The enumerable extensions class.

Fields

Methods

AsReadOnly(IEnumerable instance, Type type)

Converts an into a or

Parameters

Name Description
instance The enumerable
type The type

Returns

The or as

Cast(IEnumerable instance, Type type)

Element wise cast an to type.

Parameters

Name Description
instance The enumerable
type The type

Returns

The with element cast to type

ToList(IEnumerable instance, Type type)

Converts an into a

Parameters

Name Description
instance The enumerable
type The type

Returns

The as

ToSystemArray(IEnumerable instance, Type type)

Converts an into an array of type

Parameters

Name Description
instance The enumerable
type The type

Returns

The array of type as


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion