Table of Contents

Class GenericKeysCollection

Namespace
TimeCockpit.Data.Localization.Default
Assembly
TimeCockpit.Data.dll

class representing a collection of generic keys.

public class GenericKeysCollection : IEnumerable<KeyValuePair<string, StringLocalizer>>, IEnumerable
Inheritance
Object
GenericKeysCollection
Implements
IEnumerable<KeyValuePair<String, StringLocalizer>>
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

source GenericKeysCollection

the source to copy from.

Properties

Item[String]

Indexes the string localizer collection.

public StringLocalizer this[string index] { get; }

Parameters

index String

the name of the key.

Property Value

StringLocalizer

Returns the StringLocalizer.

Methods

Accept(LocalizerVisitor)

Accepts a visitor.

public void Accept(LocalizerVisitor visitor)

Parameters

visitor LocalizerVisitor

the 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

sourceKeys GenericKeysCollection

the 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

index String

the key.

stringLocalizer StringLocalizer

the 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.