In .NET, one often refers to other assemblies that contain specific modules that you can use in your application. Say, you reference a DLL that contains some classes that you will use in your application. Suppose the application is deployed. Now, suppose you want to move one class of the DLL to another assembly. What can you do in this situation with old coding methodoligies? The old methodologies say,
- Remove the class from the existing DLL.
- Create another DLL (assembly) using that class.
- Recompile both the DLLs.
- From your application, add a reference to the new DLL.
- Recompile the application.
- Re-deploy the whole thing.
TypeForwardedTo Reduces the Above Stuffs Open the AssemblyInfo.cs file and add the following line right after the assembly directives.
[assembly: TypeForwardedTo(typeof(MyNameSpace.MyClass))]
Reference: http://www.codeguru.com/csharp/csharp/cs_misc/dllsandexecutables/article.php/c14559__1/
No comments:
Post a Comment