Dictory添加Enum值做为Key

Enum类型没有实现IEquatable接口,Dictionary中没法添加Enum类型的元素。 经过实现Enum的IEquatable接口,即可以将enum类型做为key 添加到dictionary中 代码示例与应用web using System; using System.Collections.Generic; using System.Linq.Expressions; namespa
相关文章
相关标签/搜索