private void myMethod() { enum myEnum : byte { Zero = 0x00, One = 0x01 } // Method code that is using the enum }