public static void ConvertTypesToSchemaToStream(ServiceType [] serviceTypes, SdlType sdlType, Stream outputStream) { MetaDataExporter exporter = new MetaDataExporter(); MemoryStream memStream = new MemoryStream(); StreamWriter sw = new StreamWriter(memStream); XmlTextWriter tw = new XmlTextWriter(sw); exporter.ExportTypes(serviceTypes, sdlType, tw); tw.Flush(); memStream.Position = 0; CopyStream(memStream, outputStream); }
public static void ConvertTypesToSchemaToStream (ServiceType [] serviceTypes, SdlType sdlType, Stream outputStream) { MetaDataExporter exporter = new MetaDataExporter (); MemoryStream memStream = new MemoryStream (); StreamWriter sw = new StreamWriter (memStream); XmlTextWriter tw = new XmlTextWriter (sw); exporter.ExportTypes (serviceTypes, sdlType, tw); tw.Flush (); memStream.Position = 0; CopyStream (memStream, outputStream); }