public enum Number : int
     {
         a=1,
         b=2,
         c=3,
         d=4
    }

     class Test
    {
         public static void Main()
         {
             int i=(int)Number.a;    
        }
    }

相关文章:

  • 2021-12-06
  • 2021-08-08
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-03-09
相关资源
相似解决方案