I have a method which is located like this in my code
namespace DMR
{
public static class MyClass
{
public static void MyMethod()
{
// Do stuff here
// (...)
}
}
}
I have tried calling it from the Immediate Window with the following command:
DMR.MyClass.MyMethod();
Which returns a namespace error:
The type or namespace name 'MyClass' does not exist in the namespace 'ProjectName.DMR'
I have also tried adding the project name in front of the namespace in the call, but that doesn't change anything. I should perhaps note that the namespace is different from the folder name, since the folder name was changed after creation (without changing the namespace), I do not know, if this has any effect.
What am I doing wrong?