Re: Using .GetType() or similar to create object of arbitrary type...

Tech-Archive recommends: Fix windows errors by optimizing your registry




Lars-Inge Tønnessen (VJ# MVP) wrote:
You can do this with Reflection.

Do you know Reflection?


No, not really. I came by a few pages scouring google, but all were
about listing properties and methods of objects, so I thought it was a
detour. Could you show me how?

Regards,
Lars-Inge Tønnessen

.



Relevant Pages

  • Re: urgent: needed today!!! WMI child-to-parent
    ... I dont kow the answer but you may be able to use reflection ... John Timney (MVP) ... i will be inputting the name of the WMI class and i will ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: anonymous methods only available in C#?
    ... Late Binding ... You may be an MVP, but this statement reveals a huge gap in your ... If you do this statement, than tell in about 10 words what reflection is, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Invoking Console Applications Program.Main from another project
    ... Ben Voigt [C++ MVP] wrote: ... The link he gave ran a BAT file. ... If you need to work with an arbitrary .NET executable, then reflection is needed to load the assembly dynamically. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Reflection of Member Interaction
    ... That would require parsing the IL code. ... Reflection currently doesn't ... Mattias Sjögren [MVP] mattias @ mvps.org ... Please reply only to the newsgroup. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Can reflection tell the base class of an object?
    ... Check out the Type class's GetBaseType method. ... Mike McIntyre [MVP] ... Are there functions in reflection that gives information about the base ...
    (microsoft.public.dotnet.languages.vb)