110,539
社区成员
发帖
与我相关
我的任务
分享
public static class EnumHelper {
/// <summary>
/// 获得枚举类型数据项(不包括空项)
/// </summary>
/// <param name="enumType">枚举类型</param>
/// <returns></returns>
public static IList<object> GetItems(this Type enumType) {
if (!enumType.IsEnum)
throw new InvalidOperationException();
// ......