Activator.CreateInstance Method (String, String)  

Creates an instance of the type whose name is specified, using the named
assembly and default constructor.

[C#]
public static ObjectHandle CreateInstance(
   string assemblyName,
   string typeName
);

Paul
-----Original Message-----
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Jekke Bladt
Sent: Wednesday, October 27, 2004 17:32
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Instance from type name.

All--

I'm sure I've seen this somewhere before, but can't find it now. If I
have the name of a type as a string (ie "System.Text.StringBuilder," how
do I use it to construct an instance of that type?

TIA

--Jekke

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com Some
.NET courses you may be interested in:

Essential .NET: building applications and components with C# November 29
- December 3, in Los Angeles http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with C#
November 29 - December 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to