C# Class MsgPack.Serialization.SerializerCodeInformation

Represents generating serializer code information.
显示文件 Open project: msgpack/msgpack-cli Class Usage Examples

Public Methods

Method Description
SetFileWriter ( string path ) : void

Sets up this object to use T:TextWriter for specified file path.

Use this method to emit the code to the file. This method sets P:TextWriter and FilePath property.

SetNonFileWriter ( TextWriter writer ) : void

Sets up this object to use specified T:TextWriter.

Use this method to emit the code to specified T:TextWriter instead of the file. Use SetFileWriter if you want to emit to the file. This method sets the P:TextWriter property with the argument, and sets null for FilePath.

Private Methods

Method Description
SerializerCodeInformation ( string typeFullName, string directory, string fileExtension ) : System

Method Details

SetFileWriter() public method

Sets up this object to use T:TextWriter for specified file path.
Use this method to emit the code to the file. This method sets P:TextWriter and FilePath property.
The is null. The is empty or invalid character. The is unsupported form. The is too long. The point the directory which does not exist. The points the location which is not writable from this process.
public SetFileWriter ( string path ) : void
path string The file path.
return void

SetNonFileWriter() public method

Sets up this object to use specified T:TextWriter.
Use this method to emit the code to specified T:TextWriter instead of the file. Use SetFileWriter if you want to emit to the file. This method sets the P:TextWriter property with the argument, and sets null for FilePath.
The is null.
public SetNonFileWriter ( TextWriter writer ) : void
writer System.IO.TextWriter The writer.
return void