示例#1
0
        internal static IEnumerable <T> GenerateArrayObject <T>(IEnumerable <T> data, VariableInfo variableInfo)
        {
            IEnumerable <T> result = data.Where(x =>
            {
                bool v = (bool)variableInfo.Run(x);
                return(v);
            });

            return(result);
        }
示例#2
0
 /// <summary>
 /// generate object that is in list
 /// </summary>
 /// <param name="data"></param>
 /// <param name="selectNode"></param>
 /// <returns></returns>
 internal static object GenerateArrayObject(object data, VariableInfo variableInfo)
 {
     return(((IEnumerable)data).Cast <object>().Where(x => (bool)variableInfo.Run(x)));
 }