BasicEnum_ExplicitUint.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. namespace Terminal.Gui.Analyzers.Internal.Tests.Generators.EnumExtensions.EnumDefinitions;
  2. /// <summary>
  3. /// Basic enum with explicitly-defined backing type of uint and no attributes on the enum or any of its members.
  4. /// </summary>
  5. [SuppressMessage ("Naming", "CA1707:Identifiers should not contain underscores", Justification = "Naming is intentional.")]
  6. [SuppressMessage ("Roslynator", "RCS1154:Sort enum members", Justification = "Order is intentional.")]
  7. public enum BasicEnum_ExplicitUInt : uint
  8. {
  9. Bit31 = 0b_10000000_00000000_00000000_00000000u,
  10. Bit30 = 0b_01000000_00000000_00000000_00000000u,
  11. Bit29 = 0b_00100000_00000000_00000000_00000000u,
  12. Bit28 = 0b_00010000_00000000_00000000_00000000u,
  13. Bit27 = 0b_00001000_00000000_00000000_00000000u,
  14. Bit26 = 0b_00000100_00000000_00000000_00000000u,
  15. Bit25 = 0b_00000010_00000000_00000000_00000000u,
  16. Bit24 = 0b_00000001_00000000_00000000_00000000u,
  17. Bit23 = 0b_00000000_10000000_00000000_00000000u,
  18. Bit22 = 0b_00000000_01000000_00000000_00000000u,
  19. Bit21 = 0b_00000000_00100000_00000000_00000000u,
  20. Bit20 = 0b_00000000_00010000_00000000_00000000u,
  21. Bit19 = 0b_00000000_00001000_00000000_00000000u,
  22. Bit18 = 0b_00000000_00000100_00000000_00000000u,
  23. Bit17 = 0b_00000000_00000010_00000000_00000000u,
  24. Bit16 = 0b_00000000_00000001_00000000_00000000u,
  25. Bit15 = 0b_00000000_00000000_10000000_00000000u,
  26. Bit14 = 0b_00000000_00000000_01000000_00000000u,
  27. Bit13 = 0b_00000000_00000000_00100000_00000000u,
  28. Bit12 = 0b_00000000_00000000_00010000_00000000u,
  29. Bit11 = 0b_00000000_00000000_00001000_00000000u,
  30. Bit10 = 0b_00000000_00000000_00000100_00000000u,
  31. Bit09 = 0b_00000000_00000000_00000010_00000000u,
  32. Bit08 = 0b_00000000_00000000_00000001_00000000u,
  33. Bit07 = 0b_00000000_00000000_00000000_10000000u,
  34. Bit06 = 0b_00000000_00000000_00000000_01000000u,
  35. Bit05 = 0b_00000000_00000000_00000000_00100000u,
  36. Bit04 = 0b_00000000_00000000_00000000_00010000u,
  37. Bit03 = 0b_00000000_00000000_00000000_00001000u,
  38. Bit02 = 0b_00000000_00000000_00000000_00000100u,
  39. Bit01 = 0b_00000000_00000000_00000000_00000010u,
  40. Bit00 = 0b_00000000_00000000_00000000_00000001u,
  41. All_0 = 0b_00000000_00000000_00000000_00000000u,
  42. All_1 = 0b_11111111_11111111_11111111_11111111u,
  43. Alternating_01 = 0b_01010101_01010101_01010101_01010101u,
  44. Alternating_10 = 0b_10101010_10101010_10101010_10101010u,
  45. OddBytesHigh = 0b_11111111_00000000_11111111_00000000u,
  46. EvenBytesHigh = 0b_00000000_11111111_00000000_11111111u,
  47. }