示例#1
0
        public static void ConvertSchemaStreamToCodeSourceStream(
            bool clientProxy,
            string outputDirectory,
            Stream inputStream,
            ArrayList outCodeStreamList,
            string proxyUrl,
            string proxyNamespace)
        {
            MetaDataCodeGenerator cg = new MetaDataCodeGenerator();

            MemoryStream memStream = new MemoryStream();

            CopyStream(inputStream, memStream);
            memStream.Position = 0;
            cg.GenerateCode(clientProxy, outputDirectory, memStream, outCodeStreamList, proxyUrl, proxyNamespace);
        }
		public static void ConvertSchemaStreamToCodeSourceStream (
				   bool clientProxy, 
				   string outputDirectory, 
				   Stream inputStream, 
				   ArrayList outCodeStreamList, 
				   string proxyUrl, 
				   string proxyNamespace)
		{
			MetaDataCodeGenerator cg = new MetaDataCodeGenerator ();
			
			MemoryStream memStream = new MemoryStream ();
			CopyStream (inputStream, memStream);
			memStream.Position = 0;
			cg.GenerateCode (clientProxy, outputDirectory, memStream, outCodeStreamList, proxyUrl, proxyNamespace);
		}