Show / Hide Table of Contents

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 Source

ResourceFormat

Gets the format supported by the type's construction.

Declaration
ResourceFormat ResourceFormat { get; }
Property Value
Type Description
ResourceFormat

The resource format.

| Improve this Doc View Source

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 Source

GetObject(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

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX