Пример #1
0
        /// <summary>
        /// Creates the NodeId for the specified node.
        /// </summary>
        public override NodeId New(ISystemContext context, NodeState node)
        {
            BaseInstanceState instance = node as BaseInstanceState;

            if (instance != null && instance.Parent != null)
            {
                if (instance.Parent.NodeId.IdType == IdType.String)
                {
                    return(ParsedNodeId.CreateIdForComponent(instance, instance.Parent.NodeId.NamespaceIndex));
                }
            }

            return(node.NodeId);
        }