Merge pull request #4621 from alexanderkyte/strdup_env
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Configuration / StandardEndpointsSection.cs
index 3e6537f55769f1b0d8ddc7ad9b2f9db4cd9c82e5..aa38ecda1a570556bfd35b5f1d67174697b492ef 100644 (file)
@@ -25,7 +25,6 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-#if NET_4_0
 
 using System;
 using System.Collections;
@@ -95,13 +94,11 @@ namespace System.ServiceModel.Configuration
                        }
                }
                
-#if NET_4_0            
                internal ConfigurationPropertyCollection PropertiesInternal {
                        get {
                                return Properties;
                        }
                }
-#endif
 
                public static StandardEndpointsSection GetSection (System.Configuration.Configuration config) {
                        ServiceModelSectionGroup sm = ServiceModelSectionGroup.GetSectionGroup (config);
@@ -112,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));
                        }
                }
 
@@ -125,4 +122,3 @@ namespace System.ServiceModel.Configuration
 
 }
 
-#endif