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");
     }
 }
		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");
		}