Object newInstance = System.Activator.CreateInstance(System.Type.GetType("className"));
-- Henkk ----- Original Message ----- From: "David B. Bitton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 31, 2002 3:23 PM Subject: [DOTNET] Call class by name > Java has a function called Class(string) that allows you to instantiate a > class by string literal. Does C# have this? > -- > > David B. Bitton > [EMAIL PROTECTED] > www.codenoevil.com > > Code Made Fresh DailyT > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.