C# Class Shiloh.Utils.EmbeddedResourceFile

显示文件 Open project: ChrisEdwards/Fluency

Public Methods

Method Description
ForEachLineIn ( string filename, Assembly assembly ) : IEnumerable

Enumerates all the lines in the specified file embedded as a resource in the specified assembly.

GetDefaultResourceNamespace ( Assembly assembly ) : string

Gets the resource name for a file embedded in the specified assembly.

GetReader ( string resourceName, Assembly assembly ) : StreamReader

Gets a StreamReader for the specified resource file.

Method Details

ForEachLineIn() public static method

Enumerates all the lines in the specified file embedded as a resource in the specified assembly.
public static ForEachLineIn ( string filename, Assembly assembly ) : IEnumerable
filename string The filename.
assembly System.Reflection.Assembly The assembly the file is embedded in..
return IEnumerable

GetDefaultResourceNamespace() public static method

Gets the resource name for a file embedded in the specified assembly.
public static GetDefaultResourceNamespace ( Assembly assembly ) : string
assembly System.Reflection.Assembly The assembly.
return string

GetReader() public static method

Gets a StreamReader for the specified resource file.
MissingManifestResourceException.
public static GetReader ( string resourceName, Assembly assembly ) : StreamReader
resourceName string The filename.
assembly System.Reflection.Assembly The assembly.
return System.IO.StreamReader