Re: How do I create an object?
From: Jim Robertson (JimRobertson_at_discussions.microsoft.com)
Date: 03/21/05
- Next message: Shaun: "Web Browser control throws exception when trying to navigate to ur"
- Previous message: Juri: "updating a shared files using Updater Applicatin Block"
- In reply to: William DePalo [MVP VC++]: "Re: How do I create an object?"
- Next in thread: Richard Blewett [DevelopMentor]: "Re: How do I create an object?"
- Reply: Richard Blewett [DevelopMentor]: "Re: How do I create an object?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 21 Mar 2005 15:01:04 -0800
Thanks! That's what I was looking for.
I hope the new parametrized type feature of C# will also have reflection
support.
-- Jim Robertson
"William DePalo [MVP VC++]" wrote:
> "Jim Robertson" <JimRobertson@discussions.microsoft.com> wrote in message
> news:430FB08F-EFF6-47C9-832D-C93C9AE80F18@microsoft.com...
> > Is there a way to instantiate an object whose type isn't known until
> > runtime?
> > Something comparable to Java's Class.newInstance()?
>
> Yup. Check the docs for Activator.CreateInstance().
>
> Just btw, like Java, .Net supports reflection so you'll be able to get an
> instance of a class if you like and inspect it for methods and members as
> well, if you have a need to do that.
>
> Regards,
> Will
>
>
>
>
- Next message: Shaun: "Web Browser control throws exception when trying to navigate to ur"
- Previous message: Juri: "updating a shared files using Updater Applicatin Block"
- In reply to: William DePalo [MVP VC++]: "Re: How do I create an object?"
- Next in thread: Richard Blewett [DevelopMentor]: "Re: How do I create an object?"
- Reply: Richard Blewett [DevelopMentor]: "Re: How do I create an object?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|