Export (0) Print
Expand All

ILGenerator.EmitWriteLine Method (LocalBuilder)

Emits the Microsoft intermediate language (MSIL) necessary to call Console.WriteLine with the given local variable.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public virtual void EmitWriteLine(
	LocalBuilder localBuilder
)

Parameters

localBuilder
Type: System.Reflection.Emit.LocalBuilder
The local variable whose value is to be written to the console.

ExceptionCondition
ArgumentException

The type of localBuilder is TypeBuilder or EnumBuilder, which are not supported.

-or-

There is no overload of Console.WriteLine that accepts the type of localBuilder.

ArgumentNullException

localBuilder is null.

In Silverlight-based applications, there is no practical use for the EmitWriteLine method.

The type of localBuilder must match the parameter type of an overload of the Console.WriteLine method.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft