K
Kimmo Laine
Hi,
i try to define alias and then use it in another file like this:
// ----------
// file: a.cs
using System;
using MyAlias = MyNamespace.MyClass;
namespace MyNamespace {
public class MyClass {
public MyClass() { . . . }
}
}
// ----------
// file: b.cs
namespace MyNamespace {
public class OtherClass {
public MyAlias m_theClass;
public OtherClass() { . . . }
}
}
Compiler says: "The type or namespace name 'MyAlias' could not be found..."
Am i missing something? I can use the MyAlias in a.cs just fine.
thx
Kimmo Laine
i try to define alias and then use it in another file like this:
// ----------
// file: a.cs
using System;
using MyAlias = MyNamespace.MyClass;
namespace MyNamespace {
public class MyClass {
public MyClass() { . . . }
}
}
// ----------
// file: b.cs
namespace MyNamespace {
public class OtherClass {
public MyAlias m_theClass;
public OtherClass() { . . . }
}
}
Compiler says: "The type or namespace name 'MyAlias' could not be found..."
Am i missing something? I can use the MyAlias in a.cs just fine.
thx
Kimmo Laine