S
scroopy
Hi,
I'm an experienced C++ programmer but I'm new to C#. Why can't I use
enumerations like the following?
class CMyClass
{
private enum dimension:int{eWidth = 0, eHeight=1}
public int getWidth()
{
int[,] array = new int[5,5];
return array.GetLength(dimension.eWidth);
}
}
thanks
I'm an experienced C++ programmer but I'm new to C#. Why can't I use
enumerations like the following?
class CMyClass
{
private enum dimension:int{eWidth = 0, eHeight=1}
public int getWidth()
{
int[,] array = new int[5,5];
return array.GetLength(dimension.eWidth);
}
}
thanks