Can someone confirm that a) is illegal, and b) the solution?
a)
namespace Test
{
struct MyStruct
{
int a;
int b;
}
using MyQueue = System.Collections.Generic.Queue<MyStruct>;
class MyClass
{
MyQueue q = new MyQueue();
}
}
b)
namespace Test
{
struct MyStruct
{
int a;
int b;
}
}
namespace Test
{
using MyQueue = System.Collections.Generic.Queue<MyStruct>;
class MyClass
{
MyQueue q = new MyQueue();
}
}
If I'm right, anyone else agree that this seems just a little silly?