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