C# Класс CSharpGL.ManifestResourceLoader

A small helper class to load manifest resource files.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetLines ( string textFileName, int stackIndex = 2 ) : IEnumerable

Loads the named manifest resource and returns each line in order.

GetStream ( string textFileName, int stackIndex = 2 ) : Stream

Loads the named manifest resource and returns each line in order.

LoadBitmap ( string filename, int stackIndex = 2 ) : Bitmap

Loads bitmap in the manifest resource.

LoadTextFile ( string textFileName, int stackIndex = 2 ) : string

Loads the named manifest resource as a text string.

Приватные методы

Метод Описание
GetLocation ( string textFileName, int stackIndex, Assembly &executingAssembly, string &location ) : void

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

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

Loads the named manifest resource and returns each line in order.
public static GetLines ( string textFileName, int stackIndex = 2 ) : IEnumerable
textFileName string
stackIndex int
Результат IEnumerable

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

Loads the named manifest resource and returns each line in order.
public static GetStream ( string textFileName, int stackIndex = 2 ) : Stream
textFileName string
stackIndex int
Результат Stream

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

Loads bitmap in the manifest resource.
public static LoadBitmap ( string filename, int stackIndex = 2 ) : Bitmap
filename string
stackIndex int
Результат System.Drawing.Bitmap

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

Loads the named manifest resource as a text string.
public static LoadTextFile ( string textFileName, int stackIndex = 2 ) : string
textFileName string Name of the text file.
stackIndex int
Результат string