using System; using System.Configuration; namespace Yavsc.Model.WorkFlow.Configuration { /// /// WF provider collection. /// public class WFProviderCollection : ConfigurationElementCollection { /// /// Gets the element key. /// /// The element key. /// Element. protected override object GetElementKey (ConfigurationElement element) { return ((WFProvider) element).Name; } /// /// Creates the new element. /// /// The new element. protected override ConfigurationElement CreateNewElement () { return new WFProvider(); } /// /// Gets the element. /// /// The element. /// Name. public WFProvider GetElement (string name) { return this.BaseGet (name) as WFProvider; } } }