How to re-export types from a referenced .NET assembly

后端 未结 1 1176
滥情空心
滥情空心 2021-01-21 07:14

We have a big .NET project consisting of many modules, which are implemented as Visual Studio library projects and compiled into respective assemblies (DLLs).

We have a

1条回答
  •  伪装坚强ぢ
    2021-01-21 07:45

    There's an attribute on assemblies in .net where you can tell an assembly that the type it is expecting to be there, would be in another.

    [assembly:TypeForwardedToAttribute(typeof(Example))]
    

    Sounds like a usage of Type Forwarding to me http://msdn.microsoft.com/en-us/library/ms404275.aspx

    see also How do you explain type forwarding in simple terms?

    0 讨论(0)
提交回复
热议问题