public static void WriteTypeSection(this MamlWriter writer, Context context, XmlSchemaElement element) { var isSimpleType = element.ElementSchemaType is XmlSchemaSimpleType; if (isSimpleType) { return; } // Test for empty contents... writer.StartFragment(); writer.WriteTypeName(context.TopicManager, element.ElementSchemaType); writer.EndFragment(); if (String.IsNullOrEmpty(writer.Framement)) { return; } writer.StartSection("Type", "type"); writer.StartParagraph(); writer.WriteTypeName(context.TopicManager, element.ElementSchemaType); writer.EndParagraph(); writer.EndSection(); }
public static void WriteBaseTypeSection(this MamlWriter writer, Context context, XmlSchemaComplexType complexType) { // Test for empty contents... writer.StartFragment(); writer.WriteTypeName(context.TopicManager, complexType.BaseXmlSchemaType); writer.EndFragment(); if (String.IsNullOrEmpty(writer.Framement)) { return; } writer.StartSection("Base Type", "baseType"); writer.StartParagraph(); writer.WriteTypeName(context.TopicManager, complexType.BaseXmlSchemaType); writer.EndParagraph(); writer.EndSection(); }