System::Collections::Generic::List::AsReadOnly method

List::AsReadOnly method

Gets read-only reference to this collection.

SharedPtr<System::Collections::ObjectModel::ReadOnlyCollection<T>> System::Collections::Generic::List<T>::AsReadOnly()

ReturnValue

Newly created read-only wrapper around current list.

See Also