Table of Contents

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

key string

Resource key.

culture CultureInfo

Culture of the string.

Returns

string

Type Parameters

T

Any 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.