GetEmbeddedResources Method
Definition
- Namespace
- Cuemon.Extensions.Reflection
- Assemblies
- Cuemon.Extensions.Reflection.dll
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
sourceTypeThe source type to load the resource from.
namestringThe name of the resource being requested.
matchManifestResourceMatchThe 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
sourcecannot 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.