C# 클래스 Shiloh.Utils.EmbeddedResourceFile

파일 보기 프로젝트 열기: ChrisEdwards/Fluency

공개 메소드들

메소드 설명
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