Table of Contents

GetManifestResources Method

Definition

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

decorator IDecorator<Assembly>

The IDecorator<T> to extend.

name string

The case-sensitive name of the resource being requested.

match ManifestResourceMatch

The 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

decorator cannot be null -or- name cannot be null.

ArgumentException

name cannot be empty or consist only of white-space characters.

InvalidEnumArgumentException

match was not in the range of valid values.

See Also