I have a class "Extensions" that is defined in namespace Backend
and is static class Extensions
.
In it there is a method public static string MakePath(params string[] paths)
. I usually use the class for extension methods but this one isn't such.
Yet if I were to call it from another class like so MakePath("asd", "asd")
I get a "does not exist in the current context" error without the option to add a "using" statement.
Fully qualifying it, like so Extensions.MakePath
fixes that but I'd prefer a using directive. Putting using Backend;
at the top of the file does nothing. Visual Studio simply does not associate it like it should. Never had such a problem before.
How can I fix this so that Visual Studio would know "MakePaths" is in the class "Extensions" in the namespace "Backend" and a "using" directive would be detected, so that I can use the method, without fully qualifying it?