none
求解|符号的意思? RRS feed

  • 问题

  • [Flags]
    enum Days2
    {
        None = 0x0,
        Sunday = 0x1,
        Monday = 0x2,
        Tuesday = 0x4,
        Wednesday = 0x8,
        Thursday = 0x10,
        Friday = 0x20,
        Saturday = 0x40
    }
    class MyClass
    {
        Days2 meetingDays = Days2.Tuesday | Days2.Thursday;
    }
    

    Days2 meetingDays = Days2.Tuesday | Days2.Thursday;

    这个 | 符号是什么意思?

    2013年1月3日 9:53

答案

全部回复