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
精彩评论