NAnt SDK Documentation - v0.92

CompilerBase.WriteOption Method (TextWriter, String, String)

Writes an option and its value using the default output format.

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

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.
value
The value of the option which should be passed to the compiler.

Remarks

The combination of name and value (separated by a colon) is quoted unless value is already surrounded by quotes.

See Also

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