Plugin.EmbeddedResource/ResourceLoader.cs
/// <summary>
/// Attempts to find and return the given resource from within the specified assembly.
/// </summary>
/// <returns>The embedded resource as a string.</returns>
/// <param name="assembly"><see cref="Assembly"/> containing embedded resources.</param>
/// <param name="resource">Full name of embedded resource in <see cref="Assembly"/>.</param>
Attempts to find and return the given resource from within the specified assembly.
Attempts to find and return the given resource from within the specified assembly .
public static string GetEmbeddedResourceString(Assembly assembly, string resource)
		{
			var stream = GetEmbeddedResourceStream(assembly, resource);
			using (var streamReader = new StreamReader(stream))
			{
				return streamReader.ReadToEnd();
			}
		}
public static string GetEmbeddedResourceString ( Assembly assembly , string resource ) { var stream = GetEmbeddedResourceStream ( assembly , resource ) ; using ( var streamReader = new StreamReader ( stream ) ) { return streamReader . ReadToEnd ( ) ; } }
Attempts to find and return the given resource from within the specified assembly.
Attempts to find and return the given resource from within the specified assembly .
The embedded resource as a string.
The embedded resource as a string .
assembly
Assembly
containing embedded resources.
containing embedded resources .
resource
string
Full name of embedded resource in .
Full name of embedded resource in .