Class EmbeddedResourceProvider
Loads resources that are embedded in the entry assembly.
public sealed class EmbeddedResourceProvider : IResourceProvider
- Inheritance
-
EmbeddedResourceProvider
- Implements
- Inherited Members
Constructors
EmbeddedResourceProvider(string)
Loads resources that are embedded in the entry assembly.
public EmbeddedResourceProvider(string baseName = "res/")
Parameters
baseNamestringA value to prepend to the provided name when accessing a resource.
Methods
GetResourceStream(string)
Gets a stream of a resource's data.
public Stream GetResourceStream(string name)
Parameters
namestringThe name of the resource.
Returns
- Stream
The resource stream.
ResourceExists(string)
Checks if a resource is available.
public bool ResourceExists(string name)
Parameters
namestringThe name of the resource.
Returns
- bool
Whether the resource was found.