[This is preliminary documentation and is subject to change.]
The IOrderedRegistry T type exposes the following members.Methods
| Name | Description | |
|---|---|---|
| ContainsName |
Returns true if when this registry contains the specified name
(Inherited from IRegistry T .) | |
Returns an enumerator that iterates through the collection. (Inherited from | ||
Returns an enumerator that iterates through a collection. (Inherited from |
Extension Methods
| Name | Description | |
|---|---|---|
| AsLookAheadEnumerable T | (Defined by LookAheadExtensions.) | |
| Distinct T, TKey | (Defined by CollectionUtils.) | |
| FirstMax T, TComparand (Func T, TComparand ) | Overloaded. (Defined by CollectionUtils.) | |
| FirstMax T, TComparand (Func T, TComparand , TComparand ) | Overloaded. (Defined by CollectionUtils.) | |
| FirstMin T, TComparand (Func T, TComparand ) | Overloaded. (Defined by CollectionUtils.) | |
| FirstMin T, TComparand (Func T, TComparand , TComparand ) | Overloaded. (Defined by CollectionUtils.) | |
| FirstOrAnyOrDefault T |
Tries to find the first element that matches the predicate and returns it,
otherwise returns the first element found or default (i.e. null)
(Defined by CollectionUtils.) | |
| ForEach T (Action T ) | Overloaded.
Runs some method over each element of src sequence
(Defined by CollectionUtils.) | |
| ForEach T (Action T, Int32 ) | Overloaded.
Runs some method over each element of src sequence
(Defined by CollectionUtils.) | |
| SkipLast T | Overloaded.
Takes all elements except for last element from the given source
(Defined by CollectionUtils.) | |
| SkipLast T (Int32) | Overloaded.
Takes all but last N elements from the source
(Defined by CollectionUtils.) |
Properties
| Name | Description | |
|---|---|---|
| Count |
Returns the count of items registered in this instance
(Inherited from IRegistry T .) | |
| IsCaseSensitive |
Returns true if the instance differentiates names by case
(Inherited from IRegistry T .) | |
| Item Int32 |
Tries to return an item by its position index in ordered set of items that this registry keeps.
Null is returned when index is out of bounds.
Note: since registry does reading in a lock-free manner, it is possible to have an inconsistent read snapshot
of ordered items which may capture items that have already/not yet been added to the registry
| |
| Item String |
Returns item by name or default item (such as null) if the named instance could not be found
(Inherited from IRegistry T .) | |
| Names | (Inherited from IRegistry T .) | |
| OrderedValues |
Returns items that registry contains ordered by their Order property.
The returned sequence is pre-sorted during alteration of registry, so this property access is efficient.
Note: since registry does reading in a lock-free manner, it is possible to have an inconsistent read snapshot
of ordered items which may capture items that have already/not yet been added to the registry
| |
| Values | (Inherited from IRegistry T .) |
See Also