Enhanced C#
Language of your choice: library documentation
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<T> GetEnumerator();

Properties

abstract int Count [get]
 

Public Member Functions

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