Exemplo n.º 1
0
 public static void WriteNamespaceInfo(this MamlWriter writer, Context context, string namespaceUri)
 {
     writer.StartParagraph();
     writer.StartBold();
     writer.WriteString("Namespace:");
     writer.EndBold();
     writer.WriteNonBlockingSpace();
     writer.WriteNamespaceLink(context, namespaceUri);
     writer.EndParagraph();
 }
Exemplo n.º 2
0
        public static void WriteNamespaceAndSchemaInfo(this MamlWriter writer, Context context, XmlSchemaObject obj)
        {
            var targetNamespace = obj.GetSchema().TargetNamespace;

            writer.WriteNamespaceInfo(context, targetNamespace);

            writer.StartParagraph();
            writer.StartBold();
            writer.WriteString("Schema:");
            writer.EndBold();
            writer.WriteNonBlockingSpace();
            writer.WriteSchemaLink(context, obj);
            writer.EndParagraph();
        }