Back to Devexpress

EnumerableExtensions.ToReadOnlyCollection<T>(IEnumerable<T>) Method

maui-devexpress-dot-maui-dot-mvvm-dot-enumerableextensions-dot-toreadonlycollection-1-x28-system-dot-collections-dot-generic-dot-ienumerable-0-x29.md

latest1.8 KB
Original Source

EnumerableExtensions.ToReadOnlyCollection<T>(IEnumerable<T>) Method

Converts the IEnumerable<T> collection to the ReadOnlyCollection<T>.

Namespace : DevExpress.Maui.Mvvm

Assembly : DevExpress.Maui.Mvvm.dll

NuGet Package : DevExpress.Maui.Mvvm

Declaration

csharp
public static ReadOnlyCollection<T> ToReadOnlyCollection<T>(
    this IEnumerable<T> source
)

Parameters

NameTypeDescription
sourceIEnumerable<T>

The source item collection.

|

Type Parameters

NameDescription
T

The type of items stored in the IEnumerable<T> collection.

|

Returns

TypeDescription
ReadOnlyCollection<T>

The ReadOnlyCollection<T> that contains items from the source IEnumerable<T> collection.

|

See Also

EnumerableExtensions Class

EnumerableExtensions Members

DevExpress.Maui.Mvvm Namespace