|
Enhanced C#
Loyc library documentation
|
Helps you implement read-only collections by providing default implementations for most methods of ICollection{T} and IReadOnlyCollection{T}. More...
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:
Properties | |
| abstract int | Count [get] |
Public Member Functions | |
| abstract IEnumerator< T > | GetEnumerator () |
| bool | Contains (T item) |
| Returns true if and only if the collection contains the specified item. More... | |
|
inline |
Returns true if and only if the collection contains the specified item.
| item | Data/object whose presence you want to check for. The collection decides how to test for equality, but it's most common to use EqualityComparer{T}.Default. |
Implements Loyc.Collections.IContains< in T >.
1.8.7