public void Add(NodeTypeCollection collection) { foreach (Type t in collection) { m_Items.Add(t); } }
public static NodeTypeCollection operator +(NodeTypeCollection a, Type b) { NodeTypeCollection output = new NodeTypeCollection() { a }; output.m_Items.Add(b); return(output); }
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); }