Exemplo n.º 1
0
 private void ExportDataContract(MessagePartDescription md)
 {
     if (data_contract_importer == null)
     {
         data_contract_importer = md.DataContractImporter;
     }
     else if (md.DataContractImporter != null && data_contract_importer != md.DataContractImporter)
     {
         throw new Exception("INTERNAL ERROR: should not happen");
     }
     if (xml_serialization_importer == null)
     {
         xml_serialization_importer = md.XmlSerializationImporter;
     }
     else if (md.XmlSerializationImporter != null && xml_serialization_importer != md.XmlSerializationImporter)
     {
         throw new Exception("INTERNAL ERROR: should not happen");
     }
 }
Exemplo n.º 2
0
		private void ExportDataContract (MessagePartDescription md)
		{
			if (data_contract_importer == null)
				data_contract_importer = md.DataContractImporter;
			else if (md.DataContractImporter != null && data_contract_importer != md.DataContractImporter)
				throw new Exception ("INTERNAL ERROR: should not happen");
			if (xml_serialization_importer == null)
				xml_serialization_importer = md.XmlSerializationImporter;
			else if (md.XmlSerializationImporter != null && xml_serialization_importer != md.XmlSerializationImporter)
				throw new Exception ("INTERNAL ERROR: should not happen");
		}