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
		protected override void AssignTextWriterCore( SerializerCodeInformation codeInformation )
		{
			codeInformation.SetNonFileWriter( this._writer );
		}
Beispiel #2
0
 protected override void AssignTextWriterCore(SerializerCodeInformation codeInformation)
 {
     codeInformation.SetNonFileWriter(this._writer);
 }