Answer the question
In order to leave comments, you need to log in
Where is the best place to declare enums?
Let's say I have a class:
class SomeClass {
public SomeEnum someEnum;
}
class SomeClass {
public SomeEnum someEnum;
public enum SomeEnum {
Red, Green, Blue
}
}
class SomeClass {
public SomeEnum someEnum;
}
enum SomeEnum {
Red, Green, Blue
}
Answer the question
In order to leave comments, you need to log in
If it refers only to the class, then inside it, if not, then outside
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question