Re: Reflection

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



jim <jim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Here is the short sample code:
> 1) Create a new solution with a console and class library projects
> 2) Paste the code below into a class file in the console project.
> 3) Coply the Worker WorkerBase, and WorkDoneHandler into the class library
> project.

And that's the problem - as specified in the article, you then have two
copies of the classes, one in the class library assembly and one in the
console application assembly. Those are entirely different classes as
far as the CLR is concerned.

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: java applet grey in browser
    ... >i have an java applet, and when i start it it shows a ... > gray win with x. the console shows ... > my class file is in the same folder as the html page where i put ...
    (comp.lang.java)
  • Re: VS2005 Default Class
    ... I have created a Console Application. ... Set the access modifier to public ans save the class file as your own class ... item template. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is there any other method to run builded Java programs?
    ... basicly you need to tell your vm to run the class file. ... You can do that by using console (eg. the windows command line) or a script file. ...
    (comp.lang.java.programmer)
  • Re: Stuck on problem using Serialization
    ... You can drop this code into 1 class file for a console and compile. ... It will dump ...
    (microsoft.public.dotnet.framework)