NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ILGenerator.EmitWriteLine (LocalBuilder)

Emits the IL necessary to call WriteLine with the given local variable.

[Visual Basic]
Overloads Overridable Public Sub EmitWriteLine( _
   ByVal localBuilder As LocalBuilder _
)
[C#]
public virtual void EmitWriteLine(
   LocalBuilder localBuilder
);
[C++]
public: virtual void EmitWriteLine(
   LocalBuilder* localBuilder
);
[JScript]
public function EmitWriteLine(
   localBuilder : LocalBuilder
);

Parameters

localBuilder
The local variable to be written.

Exceptions

Exception Type Condition
ArgumentException if the type of localBuilder is not supported, e.g., TypeBuilder.

Remarks

It is an error to call EmitWriteLine with a LocalBuilder which is not of one of the types for which Console.WriteLine implements overloads. (e.g. you do not call ToString on the locals.)

See Also

ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace | ILGenerator.EmitWriteLine Overload List