Class GenericKeysCollection
- Assembly
- TimeCockpit.Data.dll
class representing a collection of generic keys.
public class GenericKeysCollection : IEnumerable<KeyValuePair<string, StringLocalizer>>, IEnumerable
- Inheritance
-
ObjectGenericKeysCollection
- Implements
-
IEnumerable
- Inherited Members
-
Object.ToString()Object.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.GetType()Object.MemberwiseClone()
Constructors
GenericKeysCollection()
Initializes a new instance of the GenericKeysCollection class.
public GenericKeysCollection()
GenericKeysCollection(GenericKeysCollection)
Initializes a new instance of the GenericKeysCollection class.
public GenericKeysCollection(GenericKeysCollection source)
Parameters
sourceGenericKeysCollectionthe source to copy from.
Properties
Item[String]
Indexes the string localizer collection.
public StringLocalizer this[string index] { get; }
Parameters
indexStringthe name of the key.
Property Value
- StringLocalizer
Returns the StringLocalizer.
Methods
Accept(LocalizerVisitor)
Accepts a visitor.
public void Accept(LocalizerVisitor visitor)
Parameters
visitorLocalizerVisitorthe visitor to visit.
GetEnumerator()
Gets the enumerator of the nested collection.
public IEnumerator<KeyValuePair<string, StringLocalizer>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<String, StringLocalizer>>
Returns the nested collection enumerator.
MergeFrom(GenericKeysCollection)
merges the generic keys from the source collection.
public void MergeFrom(GenericKeysCollection sourceKeys)
Parameters
sourceKeysGenericKeysCollectionthe source generic keys to merge from.
TryGetLocalizer(String, out StringLocalizer)
Tries to get the localizer from the genericKeys collection.
public bool TryGetLocalizer(string index, out StringLocalizer stringLocalizer)
Parameters
indexStringthe key.
stringLocalizerStringLocalizerthe resulting stringlocalizer.
Returns
- Boolean
True if the key was found, false otherwise.
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Gets the enumerator of the nested collection.
IEnumerator IEnumerable.GetEnumerator()
Returns
- IEnumerator
Returns the nested collection enumerator.