예제 #1
0
        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);
        }
예제 #2
0
		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);
		}