Example:
namespace MyApp.NET
{
class Class1
{
public enum Types : byte = {t1, t2, t3};
public Types m_type = t1;
}
class Class2
{
Class1 [] m_data = new Class1 [100];
public Class1 Class1 (int i) { return m_data [i]; }
void Method2 (Class1 c)
{
if (c.m_type == Class1.Types.t1) {}
}
}
class MyApp
{
}
}
Class1.Types.t1 isn’t visible because of the method Class2.Class1. Is there a way to qualify Class1.Types.t1 so that it is accessible in the context outlined above? The issue is complicated by the namespace having the same partial name as another class.
global::MyApp.Net.Class1.Types.t1