Interface IResourceLoaderPlugin
Plug-in modules implement this interface to register a plug-in with Firefly.EmbeddedResourceLoader
Namespace: Firefly.EmbeddedResourceLoader
Assembly: Firefly.EmbeddedResourceLoader.dll
Syntax
public interface IResourceLoaderPlugin
Properties
| Improve this Doc View SourceResourceFormat
Gets the format supported by the type's construction.
Declaration
ResourceFormat ResourceFormat { get; }
Property Value
| Type | Description |
|---|---|
| ResourceFormat | The resource format. |
Type
Gets the type of the object that will be initialized from embedded resource content.
Declaration
Type Type { get; }
Property Value
| Type | Description |
|---|---|
| Type | The type. |
Methods
| Improve this Doc View SourceGetObject(Object)
Called to construct the type. An implementation of this interface should construct an object of the given Type, load the embedded resource and return the object.
Declaration
object GetObject(object resourceData)
Parameters
| Type | Name | Description |
|---|---|---|
| Object | resourceData | The resource data. This will be a String or a Stream depending on the value of ResourceFormat |
Returns
| Type | Description |
|---|---|
| Object | A constructed object of the plug-in's type |