Skip to main content
All docs
V25.1
  • EnumerableExtensions.ToReadOnlyObservableCollection<T>(IEnumerable<T>) Method

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

    Namespace: DevExpress.Maui.Mvvm

    Assembly: DevExpress.Maui.Mvvm.dll

    NuGet Package: DevExpress.Maui.Mvvm

    Declaration

    public static ReadOnlyObservableCollection<T> ToReadOnlyObservableCollection<T>(
        this IEnumerable<T> source
    )

    Parameters

    Name Type Description
    source IEnumerable<T>

    The source item collection.

    Type Parameters

    Name Description
    T

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

    Returns

    Type Description
    ReadOnlyObservableCollection<T>

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

    See Also