Пример #1
0
 /// <summary>
 /// 查找数据
 /// </summary>
 /// <param name="array"></param>
 internal void GetFind(ref FindArray <valueType> array)
 {
     if (Left != null)
     {
         Left.GetFind(ref array);
     }
     array.Add(Value);
     if (Right != null)
     {
         Right.GetFind(ref array);
     }
 }
Пример #2
0
 /// <summary>
 /// 查找数据
 /// </summary>
 /// <param name="isValue">数据匹配委托</param>
 /// <returns></returns>
 internal LeftArray <valueType> GetFind(Func <valueType, bool> isValue)
 {
     if (Boot != null)
     {
         FindArray <valueType> array = new FindArray <valueType> {
             IsValue = isValue
         };
         Boot.GetFind(ref array);
         return(array.Array);
     }
     return(default(LeftArray <valueType>));
 }