|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
namespace ClassContract
{
[ConfigurationCollection(typeof(ComponentConfigurationElement), AddItemName = "component")]
public class ComponentConfigurationElementCollection : ConfigurationElementCollection
{
protected override ConfigurationElement CreateNewElement()
{
return new ComponentConfigurationElement();
}
protected override object GetElementKey(ConfigurationElement element)
{
var dispatcher = (ComponentConfigurationElement)element;
return dispatcher.Name;
}
public ComponentConfigurationElement this[int index]
{
get
{
return (ComponentConfigurationElement)BaseGet(index);
}
}
public new ComponentConfigurationElement this[string name]
{
get
{
return (ComponentConfigurationElement)BaseGet(name);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I started to programming in 2002, started when I was grade 2 in university, I participated some part-time projects at that time, I have much experiences on Windows, includes C#, ASP.NET, Visual Basic, Visual C++, AJAX, Power Shell Script, JavaScript, XML..etc, I am learning design and architect.