public static ParamList Merge(ParamList left, ParamList right)
 {
     if (right == null)
     {
         return(left);
     }
     for (; left != null; left = left.Next)
     {
         bool find = right.Contains(left.Parameter);
         if (find == false)
         {
             right = new ParamList(left.Parameter, right);
         }
     }
     return(right);
 }
            public static ParamList Intersect(ParamList left, ParamList right)
            {
                if (right == null)
                {
                    return(right);
                }
                ParamList result = null;

                for (; left != null; left = left.Next)
                {
                    if (right.Contains(left.Parameter))
                    {
                        result = new ParamList(left.Parameter, result);
                    }
                }
                return(result);
            }
Beispiel #3
0
 public bool HasParam(string p)
 {
     return(ParamList == null ? false : ParamList.Contains(p));
 }
 public static ParamList Merge(ParamList left, ParamList right)
 {
     if (right == null) return left;
     for (; left != null; left = left.Next) {
         bool find = right.Contains(left.Parameter);
         if (find == false)
             right = new ParamList(left.Parameter, right);
     }
     return right;
 }
 public static ParamList Intersect(ParamList left, ParamList right)
 {
     if (right == null) return right;
     ParamList result = null;
     for (; left != null; left = left.Next) {
         if (right.Contains(left.Parameter))
             result = new ParamList(left.Parameter, result);
     }
     return result;
 }