Your enum must be public inside the class. Here's an example
namespace Test
{
class TestClass
{
public enum Testenum
{
TestValue1
TestValue2
}
}
}
To access this would be Test.TestClass.Testenum.TestValue1;
You could move it outside of the class and it would be
Test.Testenum.TestValue1
And you can add a using
using Test;
and shorten the line like this
Testenum.Testvalue1;
So to pass this to a method would be like this
SomeMethodName(Testenum.TestValue1);