コード例 #1
0
        public static DocumentNode GetResourceKey(DocumentCompositeNode node)
        {
            IPropertyId resourceProperty = ResourceNodeHelper.GetResourceProperty(node);

            if (resourceProperty == null)
            {
                return(null);
            }
            return(node.Properties[resourceProperty]);
        }
コード例 #2
0
        public static void SetResourceKey(DocumentCompositeNode node, DocumentNode valueNode)
        {
            IPropertyId resourceProperty = ResourceNodeHelper.GetResourceProperty(node);

            node.Properties[resourceProperty] = valueNode;
        }