[System.ServiceModel] Fixes reflection call to undefined method
authorMarcos Henrich <marcos.henrich@xamarin.com>
Mon, 14 Mar 2016 15:51:39 +0000 (15:51 +0000)
committerMarcos Henrich <marcos.henrich@xamarin.com>
Tue, 22 Mar 2016 14:09:05 +0000 (14:09 +0000)
This fixes an issue while using WCF on android.

Fixes #36080

mcs/class/System.ServiceModel/System.ServiceModel/EndpointAddress10.cs

index 361a049e6e6e49b5881ca613e00f9e51d5c201d3..862830b0c76eb927a2b38a78c9b321365f3b2440 100644 (file)
@@ -65,7 +65,6 @@ namespace System.ServiceModel
                        return new EndpointAddress10 (address);
                }
 
-#if !NET_2_1
                public static XmlQualifiedName GetSchema (XmlSchemaSet xmlSchemaSet)
                {
                        if (xmlSchemaSet == null)
@@ -73,7 +72,6 @@ namespace System.ServiceModel
                        xmlSchemaSet.Add (XmlSchema.Read (typeof (EndpointAddress10).Assembly.GetManifestResourceStream ("ws-addr.xsd"), null));
                        return new XmlQualifiedName ("EndpointReferenceType", AddressingVersion.WSAddressing10.Namespace);
                }
-#endif
 
                public EndpointAddress ToEndpointAddress ()
                {