C# Class Shiloh.Utils.EmbeddedResourceFile

Afficher le fichier Open project: ChrisEdwards/Fluency

Méthodes publiques

Méthode 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 méthode

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..
Résultat IEnumerable

GetDefaultResourceNamespace() public static méthode

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

GetReader() public static méthode

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.
Résultat System.IO.StreamReader