网站项目,知道的说说,谢谢。。
[EnumMember]
None = 0,
[EnumMember]
[Description("企业会员")]
Company = 1 << 0,
[EnumMember]
[Description("个人会员")]
Person = 1 << 1,
[EnumMember]
[Description("网站管理员")]
Admin = 1 << 2,
[EnumMember]
All = Company | Person | Admin
这里我有好多的不懂。1.我不知道[EnumMember]和[Description("企业会员")]写出来有什么作用?
2. Company = 1 << 0这个又是啥意思?
3.All = Company | Person | Admin这样写有是啥意思?
知道的大侠说说,感激不尽?