P
Paul
I have an interface that contains definintions for a method with two
different signatures. For example:
namespace Paul.DemoApp
{
public interface IHello
{
void sayHello(string message, Thing myThing);
void sayHello(string message, DemoClass demo);
}
}
I then implement the interface. In Visual Studio 7, if I press TAB to create
the methods, it produces something like this:
public class HelloWorld : IHello
{
public void sayHello(string message, Thing myThing)
{
...
}
void Paul.DemoApp.IHello sayHello(string message, DemoClass demo)
{
...
}
}
The second method is created with an explicit name including the namespace.
I can 'fix' it by removing the namespace and adding the "public" access
specifer, which is what I expected to be generated in the first place.
Can anyone explain why Visual Studio generates code like the above example?
Thanks,
Paul.
different signatures. For example:
namespace Paul.DemoApp
{
public interface IHello
{
void sayHello(string message, Thing myThing);
void sayHello(string message, DemoClass demo);
}
}
I then implement the interface. In Visual Studio 7, if I press TAB to create
the methods, it produces something like this:
public class HelloWorld : IHello
{
public void sayHello(string message, Thing myThing)
{
...
}
void Paul.DemoApp.IHello sayHello(string message, DemoClass demo)
{
...
}
}
The second method is created with an explicit name including the namespace.
I can 'fix' it by removing the namespace and adding the "public" access
specifer, which is what I expected to be generated in the first place.
Can anyone explain why Visual Studio generates code like the above example?
Thanks,
Paul.