* ILGenerator.cs: Implemented EmitWriteLine(string).
svn path=/trunk/mcs/; revision=10359
2003-01-10 Zoltan Varga <vargaz@freemail.hu>
+ * ILGenerator.cs: Implemented EmitWriteLine(string).
+
* TypeBuilder.cs (DefineInitializedData): Call DefineNestedType()
instead of DefineType() so the auxiliary types do not pollute the
global namespace. This is consistent with the behaviour of MS .NET.
throw new NotImplementedException ();
}
public virtual void EmitWriteLine (string val) {
- throw new NotImplementedException ();
+ Emit (OpCodes.Ldstr, val);
+ Emit (OpCodes.Call,
+ typeof (Console).GetMethod ("WriteLine",
+ new Type[1] { typeof(string)}));
}
public virtual void EndExceptionBlock () {