ItemSelector Class

Selects elements by index, identifier or regular expression. For mappings from regular expression to element the enlisted string has to start with "&".

Definition

Namespace: Karamba.Elements
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
[SerializableAttribute]
public class ItemSelector
Inheritance
Object    ItemSelector

Constructors

ItemSelector Initializes a new instance of the ItemSelector class. create new, empty element selector.
ItemSelector(ItemSelector) Initializes a new instance of the ItemSelector class. Copy constructor for item selectors.

Methods

enlist(ListString, Int32) Add entries consisting of a key (e.g. element name) and its index in the model.
enlist(String, ListInt32) enlist a key and corresponding indexes.
enlist(String, Int32) Add entry consisting of a key (e.g. element name) and its index in the model.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
select(IReadOnlyListString) return indexes of elements that match a given element identifier.
select(String) return indexes of elements that match a given element identifier.
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

ContainerType test if object is (a container like) a list or an array.
(Defined by MiniUtil)

See Also