C# Class FiftyOne.Foundation.Mobile.Configuration.LocationsCollection

A collection of LocationElement objects. This class cannot be inherited.
Inheritance: System.Configuration.ConfigurationElementCollection
Mostra file Open project: 51Degrees/dotNET-Device-Detection

Protected Methods

Method Description
CreateNewElement ( ) : ConfigurationElement

Creates a new LocationElement for the collection

GetElementKey ( ConfigurationElement element ) : object

Get the element key. Check for empty strings and return null to avoid a problem with the defaultvalue property of the key element becoming an empty string and causing a duplicate key exception within .NET.

Private Methods

Method Description
Add ( LocationElement element ) : void

Adds a new element to the collection.

Clear ( ) : void

Removes all elements from the configuration.

Method Details

CreateNewElement() protected method

Creates a new LocationElement for the collection
protected CreateNewElement ( ) : ConfigurationElement
return System.Configuration.ConfigurationElement

GetElementKey() protected method

Get the element key. Check for empty strings and return null to avoid a problem with the defaultvalue property of the key element becoming an empty string and causing a duplicate key exception within .NET.
protected GetElementKey ( ConfigurationElement element ) : object
element System.Configuration.ConfigurationElement
return object