public ReadOnlyCollection<T> AsReadOnly()Public Function AsReadOnly As ReadOnlyCollection(Of T)public:
ReadOnlyCollection<T>^ AsReadOnly()member AsReadOnly : unit -> ReadOnlyCollection<'T> To prevent any modifications to CircularListT, expose CircularListT only through this wrapper. A ReadOnlyCollectionT does not expose methods that modify the collection. However, if changes are made to the underlying CircularListT, the read-only collection reflects those changes.
This method is an O(1) operation.