Table of Contents

Class DistinctCultureCollectVisitorHelper

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

extension method to provide

public static class DistinctCultureCollectVisitorHelper
Inheritance
Object
DistinctCultureCollectVisitorHelper
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Methods

GetCultures(ModelElementLocalizer)

Gets the unique cultures from a localizer.

public static IEnumerable<string> GetCultures(this ModelElementLocalizer localizer)

Parameters

localizer ModelElementLocalizer

the localizer to start searching from.

Returns

IEnumerable<String>

returns an enumeration of the unique cultures.

GetCultures<T>(LocalizerCollection<T>)

Gets the unique cultures from a localizer.

public static IEnumerable<string> GetCultures<T>(this LocalizerCollection<T> localizerCollection)
    where T : ModelElementLocalizer

Parameters

localizerCollection LocalizerCollection<T>

the localizer collection to start from.

Returns

IEnumerable<String>

returns an enumeration of the unique cultures in the collection.

Type Parameters

T

the element type of the collection.