That's a good point: Main() should only be defined in non-generic classes. The system should check for this, but currently this check isn't implemented.
Dave. -----Original Message----- From: Jeroen Frijters [mailto:[EMAIL PROTECTED]] Sent: 05 September 2002 12:51 To: [EMAIL PROTECTED] Subject: [DOTNET-ROTOR] Another Gyro question Given the following code: class Test<T> { public static void Main() { System.Console.WriteLine(System.Activator.CreateInstance(typeof(Test<obj ect>).GetGenericType())); } } This creates an instance of the generic type. I don't think this should be possible. Also, wouldn't it be a good idea to have typeof(Test) return the generic type? Regards, Jeroen