开发者

How to mask DLL

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜