.NET 1.1 method invoked from .NET 2

  • Thread starter Thread starter MuZZy
  • Start date Start date
M

MuZZy

Hi,

If i have both versions of .NET installed on my machine, can i somehow
invoke a .NET 1.1 version of a method from .NET 2 program?

In particular, yes, i want to run 1.1 version of String.GetHashcode().
I assume that using reflection i might be able to get the 1.1 assembly,
right?

Any ideas?

Thank you,
MuZZy
 
MuZZy said:
If i have both versions of .NET installed on my machine, can i somehow
invoke a .NET 1.1 version of a method from .NET 2 program?

In particular, yes, i want to run 1.1 version of String.GetHashcode().
I assume that using reflection i might be able to get the 1.1 assembly,
right?

As far as I know, you can't load both CLRs in one process. However, you
can compile a program with .NET 1.1, and it'll use 1.1 when that's
available. You could write a small program just to return a hashcode.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top