Table of Contents

GetEmbeddedResources Method

Definition

Namespace
Cuemon.Extensions.Reflection
Assemblies
Cuemon.Extensions.Reflection.dll
Source
src/Cuemon.Extensions.Reflection/TypeExtensions.cs

GetEmbeddedResources(Type, string, ManifestResourceMatch)

Loads the embedded resources from the associated Assembly of the specified Type following the ManifestResourceMatch ruleset of match.

public static IDictionary<string, Stream> GetEmbeddedResources(this Type source, string name, ManifestResourceMatch match)

Parameters

source Type

The source type to load the resource from.

name string

The name of the resource being requested.

match ManifestResourceMatch

The match ruleset to apply.

Returns

IDictionary<string, Stream>

A Stream representing the loaded resources; null if no resources were specified during compilation, or if the resource is not visible to the caller.

Exceptions

ArgumentNullException

source 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.