-
Notifications
You must be signed in to change notification settings - Fork 1
net472_PropertyGridHelpers.Attributes_LocalizedTextAttribute_GetLocalizedText
dparvin edited this page Jul 9, 2025
·
12 revisions
Resolves and retrieves the localized text for this attribute using the provided target type's associated ResourcePathAttribute.
public string GetLocalizedText(ITypeDescriptorContext context, CultureInfo culture, Type targetType)| parameter | description |
|---|---|
| context | The context. |
| culture | The culture. |
| targetType | The type whose resource path is used to locate the resource class. |
The resolved localized string based on the ResourceKey and the target type's resource path.
| exception | condition |
|---|---|
| InvalidOperationException | ResourcePathAttribute not found on {targetType.FullName} or Resource type '{fullResourcePath}' not found in assembly '{rootNamespace}' |
| InvalidOperationException | Thrown if the ResourcePathAttribute is missing or if the resource type cannot be located in the assembly. |
- class LocalizedTextAttribute
- namespace PropertyGridHelpers.Attributes
- assembly PropertyGridHelpers