枚举组合值运算

(ContextType.ListContext & ContextType.ListParam & ContextType.ListWarning).HasFlag(it4.ContextType)

1.添加[Flags]特性

2.用枚举的HasFlag方法

原文地址:https://www.cnblogs.com/guosier/p/14950976.html