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
localizationsContainerTypeContainer of the nested static classes with property name localizations. Each such nested class should have 'Properties' suffix in the class name.
asmAssemblyAssembly used to find types by name.
namespacePrefixstringPrefix 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)