/// <summary> /// Loads the embedded resource from the associated <see cref="Assembly"/> of the specified <see cref="Type"/>. /// </summary> /// <param name="source">The source type to load the resource from.</param> /// <param name="name">The case-sensitive name of the resource being requested.</param> /// <param name="match">The match ruleset to apply.</param> /// <returns>A <see cref="Stream"/> representing the loaded resource; null if no resources were specified during compilation, or if the resource is not visible to the caller.</returns> public static Stream GetEmbeddedResource(this Type source, string name, ResourceMatch match) { return(ReflectionUtility.GetEmbeddedResource(source, name, match)); }
/// <summary> /// Loads the embedded resources from the associated <see cref="Assembly"/> of the specified <see cref="Type"/> following the <see cref="ResourceMatch"/> ruleset of <paramref name="match"/>. /// </summary> /// <param name="source">The source type to load the resource from.</param> /// <param name="name">The name of the resource being requested.</param> /// <param name="match">The match ruleset to apply.</param> /// <returns>A <see cref="Stream"/> representing the loaded resources; null if no resources were specified during compilation, or if the resource is not visible to the caller.</returns> public static IEnumerable <Stream> GetEmbeddedResources(this Type source, string name, ResourceMatch match) { return(ReflectionUtility.GetEmbeddedResources(source, name, match)); }