|
Listing 10-13 extracted from chapter The .NET 2 type system from a C#2 point of view
Listing 10-12< > Listing 10-14
This listing can be compiled with the command line: csc.exe /target:exe Example_10_13.cs Errors: 0 Warnings: 0
Example_10_13.cs
class Program {
static void Main() {
string s1 = "-234";
int i = System.Int32.Parse( s1 );
string s2 = i.ToString();
System.Console.WriteLine( s1 );
System.Console.WriteLine( s2 );
}
}
Copyright Patrick Smacchia 2006 2007
|