/// <summary> /// Exclude all PropertyInfos that meet the given conditions from the PropertyInfo list, /// and return the remaining PropertyInfo.<br /> /// 从 PropertyInfo 列表中排除所有满足给定条件的 PropertyInfo,并返回其余 PropertyInfo。 /// </summary> /// <param name="properties"></param> /// <param name="expressions"></param> /// <typeparam name="T"></typeparam> /// <returns></returns> /// <exception cref="ArgumentNullException"></exception> public static IEnumerable <PropertyInfo> Exclude <T>(this IEnumerable <PropertyInfo> properties, IEnumerable <Expression <Func <T, object> > > expressions) { return(TypeVisit.Exclude(properties, expressions)); }
/// <summary> /// Exclude all PropertyInfos that meet the given conditions from the PropertyInfo list, /// and return the remaining PropertyInfo.<br /> /// 从 PropertyInfo 列表中排除所有满足给定条件的 PropertyInfo,并返回其余 PropertyInfo。 /// </summary> /// <param name="properties"></param> /// <param name="shape"></param> /// <param name="expressions"></param> /// <typeparam name="T"></typeparam> /// <returns></returns> public static IEnumerable <PropertyInfo> Exclude <T>(this IEnumerable <PropertyInfo> properties, T shape, params Expression <Func <T, object> >[] expressions) { return(TypeVisit.Exclude(properties, shape, expressions)); }