Re: How to create a new object.
From: gana (gana_at_discussions.microsoft.com)
Date: 11/24/04
- Next message: Vikram404_at_hotmail.com: "NameValueCollection Problem."
- Previous message: Bill: "Re: Storing a struct or class in a hashtable and modifying it."
- In reply to: James Curran: "Re: How to create a new object."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 23 Nov 2004 22:23:03 -0800
Hello,
Thank you. My first option was to store the type itself. But I coudnt
Serilaize the object which has a public field of type System.Type. I was
getting the exception with Messgae" There was an error reflecting type
classname". If I store the fullName instead of Type itself it worked fine.
Will loading all the assemblies before trying to create the object cause any
performance issues?
Gana.
"James Curran" wrote:
> "gana" <gana@discussions.microsoft.com> wrote in message
> news:404CFE53-8929-42C8-BB04-E3B20D359F48@microsoft.com...
> > Thank you. But I have FullName of the Type not the assembly. In Activator
> > class I need to pass either Type or FullName of the assembly.
> > So How to do this?
>
> So, don't save just the name--- Save the Type.
>
> --
> Truth,
> James Curran
> [erstwhile VC++ MVP]
> Home: www.noveltheory.com Work: www.njtheater.com
> Blog: www.honestillusion.com Day Job: www.partsearch.com
>
>
>
>
- Next message: Vikram404_at_hotmail.com: "NameValueCollection Problem."
- Previous message: Bill: "Re: Storing a struct or class in a hashtable and modifying it."
- In reply to: James Curran: "Re: How to create a new object."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|