|
Listing 2-13 extracted from chapter
Assembly, module, IL language
Listing 2-12< > Listing 2-14
This listing can be compiled with the command line: csc.exe /target:exe Example_2_13.cs Errors: 0 Warnings: 0
Example_2_13.cs
class Program {
public override string ToString() { return "Program m_i=" + m_i; }
int m_i = 9;
Program(int i) { m_i = i; }
public static void Main() {
object obj = new Program(12);
obj.ToString();
}
}
Copyright Patrick Smacchia 2006 2007
|