Re: How to create a new object.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: gana (gana_at_discussions.microsoft.com)
Date: 11/24/04


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
>
>
>
>



Relevant Pages

  • Re: Persistence
    ... Why do you think OODB never succeeded? ... flexible way rather than complex assemblies, ... can use the same data store to support alternate assemblies, ... objects implemented in a programming language to XML documents ...
    (comp.object)
  • Re: OleDb Connection to XML File
    ... This Job object could have a collection ... or writting Jobs as assemblies that the executing assembly dynamically loads ... connect to an XML file with OLE DB. ... would be best to store it in a database-like storage area. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: long question
    ... If you want to store the FullName of the logged-in user, ... In that case you don't need to have the second (Login) column in the ... FullName you won't be able to tell them apart later. ... I can't seem to get the user's name recording in the database, ...
    (microsoft.public.access.formscoding)
  • Re: Method info discovery using Reflection, variable argument list
    ... >> I'm developing a console app that loads dll assemblies at run time. ... spec then i store the method name. ... I will also store the ParamTypes array ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: combine two fields in access form and store result in table
    ... John, take a look at: ... Calculated fields ... The article explains when and how to store calculated results. ... >I have an access table with fname and lname and have a form with fullname. ...
    (microsoft.public.access.forms)