Parameters() public method

public Parameters ( ) : List
return List
Example #1
0
 public ParameterList Aggregate(ParameterList list1, ParameterList list2)
 {
     var list = new ParameterList {Name = list1.Name};
     foreach (var p in list1.Parameters())
         list.Add(p);
     foreach (var p in list2.Parameters())
         list.Add(p);
     foreach (var m in list1.Methods)
         list.Methods.Add(m);
     foreach (var m in list2.Methods)
         list.Methods.Add(m);
     return list;
 }
Example #2
0
        public ParameterList Aggregate(ParameterList list1, ParameterList list2)
        {
            var list = new ParameterList {
                Name = list1.Name
            };

            foreach (var p in list1.Parameters())
            {
                list.Add(p);
            }
            foreach (var p in list2.Parameters())
            {
                list.Add(p);
            }
            foreach (var m in list1.Methods)
            {
                list.Methods.Add(m);
            }
            foreach (var m in list2.Methods)
            {
                list.Methods.Add(m);
            }
            return(list);
        }