We'll likely do something like that when we support .NET core (coming after the 4.1 release).
In projects, you have such declarations in many places:
[DllImport("TurboActivate.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
it would be nice, that you only defined the name of file only in the top of TurboActivate.cs, like this:
public const string LibraryDll = "TurboActivate.dll";
[DllImport(LibraryDll, CharSet = CharSet.Unicode)]public static extern string someFunction1(string directory);
[DllImport(LibraryDll, CharSet = CharSet.Unicode)]public static extern string someFunction2(string directory);
so we can rename the file easily, without changing 100 lines for just 1 variable name.
We'll likely do something like that when we support .NET core (coming after the 4.1 release).