471,337 Members | 859 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

.NET 1.1 method invoked from .NET 2

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
Jan 27 '06 #1
1 966
MuZZy <tn*@newsgroups.nospam> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Jan 27 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Baoqiu Cui | last post: by
12 posts views Thread by ritchiebuckley | last post: by
1 post views Thread by John F | last post: by
8 posts views Thread by Gaetan | last post: by
3 posts views Thread by Tyler | last post: by
4 posts views Thread by ddtl | last post: by
5 posts views Thread by rn5a | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.