示例#1
0
 static ResourceRef TryCreate(TextReference @ref)
 {
     if (@ref == null)
     {
         return(null);
     }
     return(ResourceRef.TryCreate(@ref.Reference));
 }
示例#2
0
            static ResourceRef TryCreate(ITreeNodeData[] nodes)
            {
                if (nodes == null || nodes.Length != 1)
                {
                    return(null);
                }
                var tokNode = nodes[0] as IMDTokenNode;

                if (tokNode != null)
                {
                    return(ResourceRef.TryCreate(tokNode.Reference));
                }
                return(null);
            }