NAnt SDK Documentation - v0.92 |

# CompilerBase.WriteOption Method (TextWriter, String)

Writes an option using the default output format.

[Visual Basic]
Overridable Overloads Protected Sub WriteOption( _
ByVal writer As TextWriter, _
ByVal name As String _
)
[C#]
protected virtual void WriteOption(
TextWriter writer,
string name
);

#### Parameters

writer
  The TextWriter to which the compiler options should be written.
name
  The name of the option which should be passed to the compiler.

#### See Also

CompilerBase Class | NAnt.DotNet.Tasks Namespace | CompilerBase.WriteOption Overload List