NAnt SDK Documentation - v0.85-nightly-2005-11-09

CompilerBase.WriteOption Method (TextWriter, String, String)

[This is preliminary documentation and subject to change.]

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 option 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