nspectre - declarative validation for .NET

ResourceLocator.GetResource Method 

Returns the contents of a resource as a string.

public string GetResource(
   string resourceReference
);

Parameters

resourceReference
A reference to the resource.

Return Value

A string containing the contents of a resource.

Remarks

The reference will be the filename, the name of an embedded resource or the resource (i.e. the string) itself

See Also

ResourceLocator Class | NSpectre.Core.Engine Namespace