Exemplo n.º 1
0
        public static MetaNode create_node(Type type, Message_Manager new_messenger, MetaNode new_project)
        {
            MetaNode result = (MetaNode)Activator.CreateInstance(type);

            result.messenger = new_messenger;
            result.container = new_project;
            result.initialize();
            return(result);
        }
Exemplo n.º 2
0
        public virtual MetaNode clone()
        {
            MetaNode new_node = (MetaNode)Activator.CreateInstance(GetType());

            foreach (Data_Member member in Data_Member.get_data_members(GetType()))
            {
                if (member.can_write)
                {
                    member.set_value(new_node, member.get_value(this));
                }
            }

            return(new_node);
        }
Exemplo n.º 3
0
 public static MetaNode create_node(string type_name, Message_Manager new_messenger, MetaNode new_project)
 {
     return(create_node(types[type_name], new_messenger, new_project));
 }