Skip to main content

public UdcSetting (with localization)

public UdcSetting(string idName, Func<CultureInfo, string> localizeCategory, Func<CultureInfo, string> localizeName, bool secret, SettingType type, string defaultValue, bool isOptional = true)

Creates a new instance of UdcSetting. The localization delegates are invoked when a translation is needed of the setting. When making the invocation, the CurrentUICulture property of the current thread is set to the language to get localization for. If .resx files are used for localization, the only thing that is needed in the delegate is a call to the property in the .resx file. If the localization is handled in another way, CultureInfo is sent to the delegate upon invocation for convenience.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!