Procházet zdrojové kódy

2010-02-19 Atsushi Enomoto <[email protected]>

	* ServiceContractGenerator.cs : add missing #ifs.


svn path=/trunk/mcs/; revision=152049
Atsushi Eno před 16 roky
rodič
revize
488e48ee80

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Description/ChangeLog

@@ -1,3 +1,7 @@
+2010-02-19  Atsushi Enomoto  <[email protected]>
+
+	* ServiceContractGenerator.cs : add missing #ifs.
+
 2010-02-19  Atsushi Enomoto  <[email protected]>
 2010-02-19  Atsushi Enomoto  <[email protected]>
 
 
 	* ServiceContractGenerator.cs, MessagePartDescription.cs,
 	* ServiceContractGenerator.cs, MessagePartDescription.cs,

+ 4 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Description/ServiceContractGenerator.cs

@@ -62,7 +62,9 @@ namespace System.ServiceModel.Description
 		ServiceContractGenerationContext contract_context;
 		ServiceContractGenerationContext contract_context;
 		List<OPair> operation_contexts = new List<OPair> ();
 		List<OPair> operation_contexts = new List<OPair> ();
 
 
+#if USE_DATA_CONTRACT_IMPORTER
 		XsdDataContractImporter xsd_data_importer;
 		XsdDataContractImporter xsd_data_importer;
+#endif
 
 
 		public ServiceContractGenerator ()
 		public ServiceContractGenerator ()
 			: this (null, null)
 			: this (null, null)
@@ -152,8 +154,10 @@ namespace System.ServiceModel.Description
 			if ((Options & ServiceContractGenerationOptions.ClientClass) != 0)
 			if ((Options & ServiceContractGenerationOptions.ClientClass) != 0)
 				GenerateProxyClass (contractDescription, cns);
 				GenerateProxyClass (contractDescription, cns);
 
 
+#if USE_DATA_CONTRACT_IMPORTER
 			if (xsd_data_importer != null)
 			if (xsd_data_importer != null)
 				MergeCompileUnit (xsd_data_importer.CodeCompileUnit, ccu);
 				MergeCompileUnit (xsd_data_importer.CodeCompileUnit, ccu);
+#endif
 
 
 			// Process extensions. Class first, then methods.
 			// Process extensions. Class first, then methods.
 			// (built-in ones must present before processing class extensions).
 			// (built-in ones must present before processing class extensions).