Interface IOrderedRegistry<T>
Provides read-only named ordered object lookup capabilities
Inherited Members
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Assembly: Azos.dll
Syntax
public interface IOrderedRegistry<out T> : IRegistry<T>, IEnumerable<T>, IEnumerable where T : INamed, IOrdered
Type Parameters
Properties
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
Declaration
T this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
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
Declaration
IEnumerable<T> OrderedValues { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
|
Extension Methods