Inline References and Namespace Imports
Like this:
reference @"..\Lib\SomeAssembly.dll";
using SomeAssemblyNamespace;
ClassInSomeAssemblyNamespace.SomeStaticMethod();
or maybe to remain true to the C# standard, use custom attributes:
[reference(@"..\Lib\SomeAssembly.dll")]
[using("SomeAssemblyNamespace")]
ClassInSomeAssemblyNamespace.SomeStaticMethod();
6
votes
![](https://secure.gravatar.com/avatar/0c8b4d4dc713954c465c2e358332e3ac?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)