Reference enum in namespace outside of class #2164
Answered
by
lostmsu
BinaryAssault
asked this question in
Q&A
|
I have some code where an enum is defined outside of the class and at the namespace level. I need to access that enum to pass it into a constructor for another class as shown below. Is this possible? C# Python |
Answered by
lostmsu
May 23, 2023
Replies: 1 comment 1 reply
|
Try explicitly importing enum and class by name instead of using wildcard import. |
1 reply
Answer selected by
BinaryAssault
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try explicitly importing enum and class by name instead of using wildcard import.