C# Class Qowaiv.CodeGenerator.Xml.XResourceFile

ファイルを表示 Open project: Corniel/Qowaiv Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Load ( FileInfo file ) : XResourceFile

Loads a resource file from stream.

Load ( Stream stream ) : XResourceFile

Loads a resource file from stream.

Load ( string file ) : XResourceFile

Loads a resource file from stream.

Save ( FileInfo file, Encoding encoding = null ) : void

Saves the resource file to a file.

Save ( Stream stream, Encoding encoding = null ) : void

Saves the resource file to a stream.

XResourceFile ( ) : System

Initializes a new instance of a resource file.

XResourceFile ( IEnumerable data ) : System

Initializes a new instance of a resource file.

this ( string key ) : XResourceFileData

Gets the first (or default) item with the specified key.

Method Details

Load() public static method

Loads a resource file from stream.
public static Load ( FileInfo file ) : XResourceFile
file System.IO.FileInfo /// The file to load from. ///
return XResourceFile

Load() public static method

Loads a resource file from stream.
public static Load ( Stream stream ) : XResourceFile
stream Stream /// The stream to load from. ///
return XResourceFile

Load() public static method

Loads a resource file from stream.
public static Load ( string file ) : XResourceFile
file string /// The file to load from. ///
return XResourceFile

Save() public method

Saves the resource file to a file.
public Save ( FileInfo file, Encoding encoding = null ) : void
file System.IO.FileInfo /// The file to safe to. ///
encoding System.Text.Encoding /// The encoding to use. ///
return void

Save() public method

Saves the resource file to a stream.
public Save ( Stream stream, Encoding encoding = null ) : void
stream Stream /// The stream to safe to. ///
encoding System.Text.Encoding /// The encoding to use. ///
return void

XResourceFile() public method

Initializes a new instance of a resource file.
public XResourceFile ( ) : System
return System

XResourceFile() public method

Initializes a new instance of a resource file.
public XResourceFile ( IEnumerable data ) : System
data IEnumerable
return System

this() public method

Gets the first (or default) item with the specified key.
public this ( string key ) : XResourceFileData
key string /// The key to search for. ///
return XResourceFileData