ResourceMarker Class

Static helper values and methods for working with resources associated with the SchemaGenerator.

Definition

Namespace: MFiles.VAF.Configuration
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public static class ResourceMarker
Inheritance
Object    ResourceMarker

Methods

GetResourceId Gets a values resource id, if it contains a marker.
IsResourceId Indicates whether a string has a marker indicating it is a resource.
IsResourceSuffix Indicates whether a string has a marker indicating it is a resource suffix.
ResolveText Detects if a string value is specified as a resource id, and if so, and a ResourceManager is defined, returns the resource value. If the value starts with "$$" the remaining portion of the string is used as the resource id. If the value starts with "$$$" the remaining portion of the string is appended to the resourceIdPrefix value, and then used as the resource id. If a ResourceManager isn't available, the original value will always be returned. If a ResourceManager is available and the value starts with "$$" and but no resource exists with the id, then null or an empty string is returned.

Fields

Id If a string starts with this value, it will be treated as a resource id.
Suffix If a string starts with this value, it will be treated end of a resource id. A ResourceIdPrefix value will be prepended to the value to get the resource id.

See Also