예제 #1
0
 public void Add(NodeTypeCollection collection)
 {
     foreach (Type t in collection)
     {
         m_Items.Add(t);
     }
 }
예제 #2
0
        public static NodeTypeCollection operator +(NodeTypeCollection a,
                                                    Type b)
        {
            NodeTypeCollection output = new NodeTypeCollection()
            {
                a
            };

            output.m_Items.Add(b);
            return(output);
        }
예제 #3
0
        public static NodeTypeCollection operator +(NodeTypeCollection a,
                                                    NodeTypeCollection b)
        {
            NodeTypeCollection output = new NodeTypeCollection()
            {
                a
            };

            foreach (var nodeType in b)
            {
                output.m_Items.Add(nodeType);
            }
            return(output);
        }