e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
//------------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace System.ServiceModel.Configuration
|
|
{
|
|
using System.Configuration;
|
|
|
|
[ConfigurationCollection(typeof(DefaultPortElement), AddItemName = ConfigurationStrings.Add)]
|
|
public sealed partial class DefaultPortElementCollection : ServiceModelEnhancedConfigurationElementCollection<DefaultPortElement>
|
|
{
|
|
public DefaultPortElementCollection()
|
|
: base(ConfigurationStrings.Add)
|
|
{
|
|
}
|
|
|
|
protected override object GetElementKey(ConfigurationElement element)
|
|
{
|
|
if (element == null)
|
|
{
|
|
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element");
|
|
}
|
|
DefaultPortElement DefaultPortElement = (DefaultPortElement)element;
|
|
return DefaultPortElement.Scheme;
|
|
}
|
|
}
|
|
}
|