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
		protected override void AssignTextWriterCore( SerializerCodeInformation codeInformation )
		{
			Directory.CreateDirectory( codeInformation.Directory );
			codeInformation.SetFileWriter( Path.Combine( codeInformation.Directory, codeInformation.TypeFullName + codeInformation.FileExtension ) );
		}
 protected override void AssignTextWriterCore(SerializerCodeInformation codeInformation)
 {
     Directory.CreateDirectory(codeInformation.Directory);
     codeInformation.SetFileWriter(Path.Combine(codeInformation.Directory, codeInformation.TypeFullName + codeInformation.FileExtension));
 }