|
using System;
using System.Collections.Generic;
using System.Configuration;
namespace Eucalypto.Configuration
{
public class AssemblyMappingElement : ConfigurationElement
{
[ConfigurationProperty("assembly", IsRequired = true)]
public string Assembly
{
get { return (string)this["assembly"]; }
set { this["assembly"] = value; }
}
}
public class AssemblyMappingCollection : ConfigurationElementCollection
{
public AssemblyMappingElement this[int index]
{
get
{
return base.BaseGet(index) as AssemblyMappingElement;
}
set
{
if (base.BaseGet(index) != null)
{
base.BaseRemoveAt(index);
}
this.BaseAdd(index, value);
}
}
protected override ConfigurationElement CreateNewElement()
{
return new AssemblyMappingElement();
}
protected override object GetElementKey(ConfigurationElement element)
{
return ((AssemblyMappingElement)element).Assembly;
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.