PC Review


Reply
Thread Tools Rate Thread

C# 1.x with C# 2.0 *.DLL

 
 
Josh
Guest
Posts: n/a
 
      27th Aug 2006
Is it possible to reference a .NET 2.0 .dll with a .NET 1.x compiler? I
have tried with C# but I get a compiler error. I was wondering becuase
you can implement both generic and non generic iterators and when you
implement a generic interator with the IEnumerable<> interface it makes
you implement the non-generic version too. I was thinking it was
because a .NET 1.x app wouldnt beable to use the generic version so it
would use the non-generic version instead.

 
Reply With Quote
 
 
 
 
Marc Gravell
Guest
Posts: n/a
 
      27th Aug 2006
No; an app running in the 1.1 runtime simply can't understand the IL in
a 2.0 assembly, so is unable to reference it directly. You can,
however, create a 2.0 wrapper assembly that uses both 1.1 and 2.0
libraries, and use 1.1 compatible approaches (preferably interfaces
etc) to liase between them.

Marc

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 PM.