Class SystemResources
- Namespace
- ExControls
- Assembly
- ExControls.dll
Reads localized strings from the resources of system assemblies (e.g. System.Windows.Forms).
public static class SystemResources
- Inheritance
-
SystemResources
- Inherited Members
Methods
GetString<T>(string, CultureInfo)
Returns the resource string with the specified key from the assembly containing type T,
or null if the string (or the whole resource table) was not found.
public static string? GetString<T>(string key, CultureInfo culture)
Parameters
keystringResource key.
cultureCultureInfoCulture of the string.
Returns
Type Parameters
TAny type from the assembly with the resources.
Remarks
Used by attribute constructors (ExCategoryAttribute, ExDescriptionAttribute), so it must never throw - an exception there makes TypeDescriptor silently drop all attributes of the member (DesignerSerializationVisibility, DefaultValue, Browsable...) and the designer then serializes the control wrongly.