Guest_imported
New member
- Jan 1, 1970
- 0
Hi...
say if I have a class with the following definition:
public class Test
{
public enum testEnum
{
fred,
joe
};
public testNum TestEnum
{
get
{
return test;
}
set
{
test = value;
}
}
public Test() {}
private testEnum test;
}
As soon as I change 'public enum testEnum' to 'private enum testEnum', the program wont' compile...
My question is, why can't it be done ? I would like the type 'enum testEnum' to be private to the class only.
anyone ?
Thanks in advance.
say if I have a class with the following definition:
public class Test
{
public enum testEnum
{
fred,
joe
};
public testNum TestEnum
{
get
{
return test;
}
set
{
test = value;
}
}
public Test() {}
private testEnum test;
}
As soon as I change 'public enum testEnum' to 'private enum testEnum', the program wont' compile...
My question is, why can't it be done ? I would like the type 'enum testEnum' to be private to the class only.
anyone ?
Thanks in advance.