AsReadOnly()

System::Collections::Generic::CollectionExtensions::AsReadOnly(const SharedPtr<IList<T>>&) function

Wraps given list with read-only collection.

template<typename T> SharedPtr<ObjectModel::ReadOnlyCollection<T>> System::Collections::Generic::CollectionExtensions::AsReadOnly(const SharedPtr<IList<T>> &list)

See Also