Table of Contents

Method RegisterPropNameLocalizations

Namespace
Alternet.UI.Localization
Assembly
Alternet.UI.Common.dll

RegisterPropNameLocalizations(Type, Assembly?, string)

Registers property name localizations in the PropertyGrid infrastructure. Uses nested types of the localizationsContainer type as a source of the localized property names.

public static void RegisterPropNameLocalizations(Type localizationsContainer, Assembly? asm = null, string namespacePrefix = "Alternet.UI.")

Parameters

localizationsContainer Type

Container of the nested static classes with property name localizations. Each such nested class should have 'Properties' suffix in the class name.

asm Assembly

Assembly used to find types by name.

namespacePrefix string

Prefix of the namespace. Optional. By default equals 'Alternet.UI.'.

Remarks

Before this call all nested static classes of the localizationsContainer type which contain property name localizations should be assigned with appropriate localization.

RegisterPropNameLocalizations(Type, Type)

Registers property name localizations in the PropertyGrid infrastructure for the specified type using localization container specified in the localizations parameter.

public static void RegisterPropNameLocalizations(Type type, Type localizations)

Parameters

type Type

Type for which property name localizations are registered.

localizations Type

Type of the class which contains static string fields with property name localizations.