#region S# License /****************************************************************************************** NOTICE!!! This program and source code is owned and licensed by StockSharp, LLC, www.stocksharp.com Viewing or use of this code requires your acceptance of the license agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE Removal of this comment is a violation of the license agreement. Project: StockSharp.Configuration.ConfigurationPublic File: IndicatorElementCollection.cs Created: 2015, 11, 11, 2:32 PM Copyright 2010 by StockSharp, LLC *******************************************************************************************/ #endregion S# License namespace StockSharp.Configuration { using System.Configuration; /// /// Represents the custom indicators section in a configuration file. /// public class IndicatorElementCollection : ConfigurationElementCollection { /// /// When overridden in a derived class, creates a new . /// /// /// A newly created . /// protected override ConfigurationElement CreateNewElement() { return new IndicatorElement(); } /// /// Gets the element key for a specified configuration element when overridden in a derived class. /// /// /// An that acts as the key for the specified . /// /// The to return the key for protected override object GetElementKey(ConfigurationElement element) { var elem = (IndicatorElement)element; return elem.Type; } } }