コード例 #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);
		}