Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ENUM Grouping - Can use Partial Class for more readability
- * Use Namespace for using
- * Without Namespace for global const and Enum
- */
- public static class Constants
- {
- public static class EditorThemes
- {
- public const int LIGHT = 0;
- public const int DARK = 1;
- public const int PLAID = 2;
- }
- public static class Fighters
- {
- public const string DEFAULT_FIGHTERNAME = "X-Wing";
- public static readonly Guid DEFAULT_FIGHTER_ID = Guid.Empty; // static readonly values work, too
- }
- // other static class groupings
- // more stuff here
- }
- public static class Enums
- {
- public static class Shipping
- {
- public enum Status
- {
- Pending,
- AwaitingPickup,
- InTransit,
- Delivered
- }
- public enum Providers
- {
- USPS,
- UPS,
- FedEx
- }
- }
- // other nested classes for other groups of enums
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement