コード例 #1
0
        public void RegisterField(string name, string semantic, INode node, Type type)
        {
            var            variable = Variable.InitVariable(name, type, semantic);
            NodeIdentifier nodeId   = new NodeIdentifier {
                Variable = variable, SupportedType = type, Node = node
            };

            fields.Add(nodeId.Variable.Name, nodeId);
        }
コード例 #2
0
        public void RegisterField(Variable variable, INode node, Type supportedType)
        {
            NodeIdentifier nodeId = new NodeIdentifier()
            {
                Variable = variable, SupportedType = supportedType, Node = node
            };

            fields.Add(nodeId.Variable.Name, nodeId);
        }