Hello everyone,
For the following code, the compile error is,
My fix is to make class Goo public, is it correct fix? Why there is such compile error?Code:error CS0051: Inconsistent accessibility: parameter type 'TestEnum1.Goo.Level' is less accessible than method 'TestEnum1.Foo.Test(TestEnum1.Goo.Level)'
Code:class Goo { public enum Level { Error = 0, Warning = 1 } } public class Foo { static public void Test(TestEnum1.Goo.Level l) { return; } }
thanks in advance,
George