API Reference
Class
EmbeddedResourceReader
Helper for reading embedded resources from an assembly.
Inheritance
- Object
- EmbeddedResourceReader
Methods
public static String FindResourceNameBySuffix(Assembly assembly, String suffix) #Returns:
StringFinds the first embedded resource name ending with the provided suffix.
Parameters
- assembly System.Reflection.Assembly
- Assembly that contains the resource.
- suffix System.String
- Suffix to match (case-insensitive).
Returns
Full resource name when found; otherwise null.
public static String ReadResource(Assembly assembly, String resourceName) #Returns:
StringReads an embedded resource as text.
Parameters
- assembly System.Reflection.Assembly
- Assembly that contains the resource.
- resourceName System.String
- Full resource name.
Returns
Resource text when found; otherwise null.
public static String ReadResourceBySuffix(Assembly assembly, params String[] suffixes) #Returns:
StringReads the first embedded resource that matches one of the suffixes.
Parameters
- assembly System.Reflection.Assembly
- Assembly that contains the resources.
- suffixes System.String[]
- Suffixes to search, in order.
Returns
Resource text when found; otherwise null.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object