GetManifestResources Method
Definition
- Namespace
- Cuemon.Reflection
- Assemblies
- Cuemon.Core.dll
GetManifestResources(IDecorator<Assembly>, string, ManifestResourceMatch)
Loads the embedded resources from the underlying Assembly of the decorator.
public static IDictionary<string, Stream> GetManifestResources(this IDecorator<Assembly> decorator, string name, ManifestResourceMatch match = ManifestResourceMatch.Name)
Parameters
decoratorIDecorator<Assembly>The IDecorator<T> to extend.
namestringThe case-sensitive name of the resource being requested.
matchManifestResourceMatchThe ruleset that defines the match to apply.
Returns
- IDictionary<string, Stream>
An IDictionary<TKey, TValue> that contains the result of
match.
Remarks
The result returned can have null values if no resources were specified during compilation or if the resource is not visible to the caller.
Exceptions
- ArgumentNullException
decoratorcannot be null -or-namecannot be null.- ArgumentException
namecannot be empty or consist only of white-space characters.- InvalidEnumArgumentException
matchwas not in the range of valid values.
- See Also