} // ConvertTypesToSchemaToFile /// <include file='doc\MetaData.uex' path='docs/doc[@for="MetaData.ConvertTypesToSchemaToFile2"]/*' /> public static void ConvertTypesToSchemaToStream(ServiceType[] serviceTypes, SdlType sdlType, Stream outputStream) { Util.Log("MetaData.ConvertTypesToSchemaToStream 4"); TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true)); SUDSGenerator sgen = new SUDSGenerator(serviceTypes, sdlType, tw); sgen.Generate(); tw.Flush(); } // ConvertTypesToSchemaToStream
} // ConvertTypesToSchemaToFile public static void ConvertTypesToSchemaToStream(ServiceType[] serviceTypes, SdlType sdlType, Stream outputStream) { Util.Log("MetaData.ConvertTypesToSchemaToStream 4"); if (sdlType == SdlType.Sdl) throw new NotSupportedException( String.Format( CultureInfo.CurrentCulture, CoreChannel.GetResourceString("Sdl generation is not supported"))); TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true)); SUDSGenerator sgen = new SUDSGenerator(serviceTypes, sdlType, tw); sgen.Generate(); tw.Flush(); } // ConvertTypesToSchemaToStream