Namespace Firefly.EmbeddedResourceLoader
Classes
AutoResourceLoader
The lazy person's resource loader!
Classes inherited from this with fields or properties decorated with EmbeddedResourceAttribute will load resources at construction.
EmbeddedResourceAttribute
Attribute that declares an embedded resource to load.
Indicates that the named resource should be loaded into the decorated field or property when the class instance is passed to LoadResources(Object).
LoadResources(Object)ResourceLoader
This class does all the magic. Given a type, or an instance of a type containing fields or properties decorated with the EmbeddedResourceAttribute it loads up all the fields and properties with the indicated embedded resources.
Resources are only loaded into members that have not previously been initialized (i.e are null).
This also has the beneficial side effect of ensuring that static members are only ever loaded once, which
is when the first instance of the containing type is presented.
TakeEveryExtensions
Linq extension to take every nth element of a sequence.
Interfaces
IResourceLoaderPlugin
Plug-in modules implement this interface to register a plug-in with Firefly.EmbeddedResourceLoader
Enums
ResourceFormat
Type of resource supported by a plugin