C# Класс Shiloh.Utils.EmbeddedResourceFile

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

ForEachLineIn() публичный статический Метод

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..
Результат IEnumerable

GetDefaultResourceNamespace() публичный статический Метод

Gets the resource name for a file embedded in the specified assembly.
public static GetDefaultResourceNamespace ( Assembly assembly ) : string
assembly System.Reflection.Assembly The assembly.
Результат string

GetReader() публичный статический Метод

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.
Результат System.IO.StreamReader