net472_PropertyGridHelpers.Attributes_LocalizedTextAttribute_GetLocalizedText - dparvin/PropertyGridHelpers GitHub Wiki

LocalizedTextAttribute.GetLocalizedText method

Resolves and retrieves the localized text for this attribute using the provided target type's associated ResourcePathAttribute.

public string GetLocalizedText(Type targetType)
parameter description
targetType The type whose resource path is used to locate the resource class.

Return Value

The resolved localized string based on the ResourceKey and the target type's resource path.

Exceptions

exception condition
InvalidOperationException Thrown if the ResourcePathAttribute is missing or if the resource type cannot be located in the assembly.

See Also

⚠️ **GitHub.com Fallback** ⚠️