PC Review


Reply
Thread Tools Rate Thread

Creating an instance from a System.Type object

 
 
Simon Jefferies
Guest
Posts: n/a
 
      8th Jul 2004
Hello,

How can I create an instance using a System.Type object?

Thanks
Simon


 
Reply With Quote
 
 
 
 
Tom Shelton
Guest
Posts: n/a
 
      8th Jul 2004
In article <(E-Mail Removed)>, Simon Jefferies wrote:
> Hello,
>
> How can I create an instance using a System.Type object?
>
> Thanks
> Simon
>
>


Look at the System.Activator class... Specifically, the CreateInstance
method:

Overloads Public Shared Function CreateInstance (_
ByVal type As Type _
) As Object

HTH
--
Tom Shelton [MVP]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2nd Chance Exception System.NullReferenceException: Object reference not set to an instance of an object. Abstract Labs Microsoft ASP .NET 1 9th Aug 2007 04:00 PM
How to cast a System.Object type to a class instance? cv@cv.com Microsoft VB .NET 3 29th Apr 2004 09:02 PM
creating a new instance of an object XXX type jernej goricki Microsoft VB .NET 20 21st Dec 2003 12:34 PM
Re: OracleClient System.NullReferenceException: Object reference not set to an instance of an object. Angel Faus Microsoft ASP .NET 2 1st Dec 2003 11:21 PM
Win32_Printer: System.NullReferenceException - Additional information: Object reference not set to an instance of an object. J M Microsoft C# .NET 2 7th Oct 2003 06:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:55 PM.