|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
IntroductionType forwarding is a CLR feature that allows us to move a type from its original assembly to another assembly in such a way that there is no need to recompile the applications referring to the original assembly. The RequirementSuppose you have created an assembly named The SolutionNow, in order to run your applications without recompiling them, you can use the Type Forwarding feature of the Common Language Runtime. In the above scenario, you need to apply Steps
// C# Example
[assembly:TypeForwardedToAttribute(typeof(MyClass))]
Now, you can ship the new version of The LimitationThe .NET Framework version 2.0 does not allow type forwarding from assemblies written in Visual Basic. However, a Visual Basic application can consume forwarded types if it uses the assemblies coded in C# or C++.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||