Class ResourceLoader
Standard interface to implement by every ResourceLoader
strategy.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.Common.ResourceLoading
Assembly: FixAntenna.Common.dll
Syntax
public abstract class ResourceLoader
Constructors
ResourceLoader()
Declaration
protected ResourceLoader()
Fields
DefaultLoader
Default resource loader.
Order of looking for resources:
- Files inside current directory
- Files inside home directory
- Embedded resources inside libraries from method callstack.
Declaration
public static readonly ResourceLoader DefaultLoader
Field Value
Type | Description |
---|---|
ResourceLoader |
DictionaryLoader
Default resource loader for dictionaries.
Order of looking for dictionaries:
- Files inside current directory
- Embedded resources inside libraries from method callstack
Declaration
public static readonly ResourceLoader DictionaryLoader
Field Value
Type | Description |
---|---|
ResourceLoader |
Properties
Log
Declaration
protected ILog Log { get; }
Property Value
Type | Description |
---|---|
ILog |
Methods
LoadResource(String)
Load resource
Declaration
public abstract Stream LoadResource(string resourceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | resourceName | resource name |
Returns
Type | Description |
---|---|
System.IO.Stream | Stream with resource |
Exceptions
Type | Condition |
---|---|
ResourceNotFoundException | if resource is not found and no parent ResourceLoader is available |