What is Type Forwarding ?

 Posted by Rajkatie on 12/30/2012 | Category: .NET Framework Interview questions | Views: 2915 | Points: 40

It is an attribute that allows you to move a type from one assembly into another assembly and to do so in such a way that it is not necessary to recompile clients that consume assembly.

To move a type from one class lib to another, follow below steps

1) Add a TypeForwardedTo attribute to source class lib assembly.
2) cut the type definition from source class lib.
3) paste the type defintion into destination class lib.
4) rebuild both lib

Source: Microsoft Press book | | Alert Moderator 

Comments or Responses

Login to post response