Merge pull request #4540 from kumpera/android-changes-part1
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Description / XmlSerializerOperationBehavior.cs
index 4c41c6b50ca42bfb09cbbb6868396a736c278905..6a43f3510e9f1e667ed8fef1600252c7349da942 100644 (file)
@@ -36,7 +36,7 @@ namespace System.ServiceModel.Description
 {
        public class XmlSerializerOperationBehavior
                : IOperationBehavior
-#if !NET_2_1
+#if !MOBILE
                        , IWsdlExportExtension
 #endif
        {
@@ -51,13 +51,13 @@ namespace System.ServiceModel.Description
 
                public XmlSerializerOperationBehavior (
                        OperationDescription operation,
-                       XmlSerializerFormatAttribute format)
+                       XmlSerializerFormatAttribute attribute)
                {
                        if (operation == null)
                                throw new ArgumentNullException ("operation");
-                       if (format == null)
-                               format = new XmlSerializerFormatAttribute ();
-                       this.format = format;
+                       if (attribute == null)
+                               attribute = new XmlSerializerFormatAttribute ();
+                       this.format = attribute;
                        this.operation = operation;
                }
 
@@ -104,7 +104,7 @@ namespace System.ServiceModel.Description
                {
                }
 
-#if !NET_2_1
+#if !MOBILE && !XAMMAC_4_5
                void IWsdlExportExtension.ExportContract (
                        WsdlExporter exporter,
                        WsdlContractConversionContext context)