Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / January 2007

Tip: Looking for answers? Try searching our database.

Recompilation required.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Burton - 06 Jan 2007 18:58 GMT
With generics I would like to get some opnions on when recompilation is
required. I have  a class R<T> where T will be changing and I want T to be
defined in a different assembly that would be recompiled each time that T
changes but I don't want the code that instantiates R<T> to have to be
recompiled just "automatically" use the changed assembly where T is defined.
Is this possible in general (if T is a class)? What if I restrict T to an
interface?

Thank you.
Ben Voigt - 08 Jan 2007 15:10 GMT
> With generics I would like to get some opnions on when recompilation is
> required. I have  a class R<T> where T will be changing and I want T to be
[quoted text clipped - 4 lines]
> Is this possible in general (if T is a class)? What if I restrict T to an
> interface?

The .NET compile process is broken into two steps, source -> MSIL (cl /clr,
csc, etc), and MSIL -> machine code (JIT).  In your scenario, you won't have
to rerun the first phase ever, and the second phase will rerun automatically
each time a different value class (struct) T is used, but all instantiations
for classes will use the same code.

> Thank you.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.