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 );
Exception Type | Condition |
---|---|
ArgumentException | if the type of localBuilder is not supported, e.g., TypeBuilder. |
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.)
ILGenerator Class | ILGenerator Members | System.Reflection.Emit Namespace | ILGenerator.EmitWriteLine Overload List