开发者

How to mask DLL

开发者 https://www.devze.com 2023-01-02 09:02 出处:网络
Let\'s say I have a DLL that provides math calculus functions. To use it, I include the using Colhq.Math.Basic; namespace.

Let's say I have a DLL that provides math calculus functions. To use it, I include the using Colhq.Math.Basic; namespace.

How could I use it by adding a statement l开发者_JS百科ike using Blala.Functions.Math;?

How could I use everything (methods, enums, etc.) from a DLL by using a different namespace? Is there a one-shot way to wrap or mask a DLL?


You can use a namespace alias.


Place the following at the top of each file where you need the alias:

using Blala.Functions.Math = Colhq.Math.Basic

0

精彩评论

暂无评论...
验证码 换一张
取 消