|
Listing 4-2 extracted from chapter The CLR (Common Languages Runtime)
Listing 4-1< > Listing 4-3
This listing can be compiled with the command line: csc.exe /out:AssemblyToLoad.exe /target:exe Example_4_2_to_rename_AssemblyToLoad.cs Errors: 0 Warnings: 0
Example_4_2_to_rename_AssemblyToLoad.cs
using System;
using System.Threading;
public class Program {
public static void Main() {
Console.WriteLine(
"Thread:{0} Hi from the domain: {1}",
Thread.CurrentThread.Name,
AppDomain.CurrentDomain.FriendlyName);
}
}
Copyright Patrick Smacchia 2006 2007
|