Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. /*
  2. * ENUM Grouping - Can use Partial Class for more readability
  3. * Use Namespace for using
  4. * Without Namespace for global const and Enum
  5. */
  6. public static class Constants
  7. {
  8. public static class EditorThemes
  9. {
  10. public const int LIGHT = 0;
  11. public const int DARK = 1;
  12. public const int PLAID = 2;
  13. }
  14. public static class Fighters
  15. {
  16. public const string DEFAULT_FIGHTERNAME = "X-Wing";
  17. public static readonly Guid DEFAULT_FIGHTER_ID = Guid.Empty; // static readonly values work, too
  18. }
  19.  
  20. // other static class groupings
  21.  
  22. // more stuff here
  23. }
  24.  
  25. public static class Enums
  26. {
  27. public static class Shipping
  28. {
  29. public enum Status
  30. {
  31. Pending,
  32. AwaitingPickup,
  33. InTransit,
  34. Delivered
  35. }
  36.  
  37. public enum Providers
  38. {
  39. USPS,
  40. UPS,
  41. FedEx
  42. }
  43. }
  44.  
  45. // other nested classes for other groups of enums
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement