Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | Public Member Functions | List of all members
Loyc.Collections.Impl.ReadOnlyCollectionBase< T > Class Template Referenceabstract

Helps you implement read-only collections by providing default implementations for most methods of ICollection{T} and IReadOnlyCollection{T}. More...


Source file:
Inheritance diagram for Loyc.Collections.Impl.ReadOnlyCollectionBase< T >:
Loyc.Collections.ICollectionAndReadOnly< T > Loyc.Collections.Impl.ListSourceBase< T > Loyc.Collections.BufferedSequence< T > Loyc.Collections.Impl.ListExBase< T > Loyc.Collections.ListSourceAsSparse< T > Loyc.Collections.ReversedListSource< T >

Remarks

Helps you implement read-only collections by providing default implementations for most methods of ICollection{T} and IReadOnlyCollection{T}.

You only need to implement two methods yourself:

public abstract int Count { get; }
public abstract IEnumerator&lt;T> GetEnumerator();

Properties

abstract int Count [get]
 

Public Member Functions

abstract IEnumerator< T > GetEnumerator ()
 
bool Contains (T item)