Merge pull request #4621 from alexanderkyte/strdup_env
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Configuration / StandardEndpointsSection.cs
index 2a82a49ac5fa32fd1526b9a655671005dac034aa..aa38ecda1a570556bfd35b5f1d67174697b492ef 100644 (file)
@@ -109,12 +109,12 @@ namespace System.ServiceModel.Configuration
                        return sm.StandardEndpoints;
                }
 
-               public new EndpointCollectionElement this [string name] {
+               public new EndpointCollectionElement this [string endpoint] {
                        get {
-                               object element = base [name];
+                               object element = base [endpoint];
                                if (element is EndpointCollectionElement)
                                        return (EndpointCollectionElement) element;
-                               throw new ArgumentException (String.Format ("Could not find {0}", name));
+                               throw new ArgumentException (String.Format ("Could not find {0}", endpoint));
                        }
                }