예제 #1
0
        // Writing link text for unresolved simple references

        internal static void WriteNamespaceReference (NamespaceReference space, DisplayOptions options, XmlWriter writer) {
            writer.WriteString(space.Id.Substring(2));
        }
예제 #2
0
        public void WriteNamespace (NamespaceReference spaceReference, DisplayOptions options, XmlWriter writer) {
            if (spaceReference == null) throw new ArgumentNullException("spaceReference");
            if (writer == null) throw new ArgumentNullException("writer");

            NamespaceTarget spaceTarget = spaceReference.Resolve(targets) as NamespaceTarget;
            if (spaceTarget != null) {
                WriteNamespaceTarget(spaceTarget, options, writer);
            } else {
                TextReferenceUtilities.WriteNamespaceReference(spaceReference, options, writer);
            }
        }
예제 #3
0
 public static NamespaceReference CreateNamespaceReference (XPathNavigator namespaceElement) {
     if (namespaceElement == null) throw new ArgumentNullException("namespaceElement");
     string api = (string) namespaceElement.Evaluate(referenceApiExpression);
     NamespaceReference reference = new NamespaceReference(api);
     return(reference);
 }