|
/************************************************/
/* Written/Copyright by Ralph Varjabedian */
/* Please do not remove the copyright notice */
/************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Reflection;
namespace DynamicServiceLocator
{
/// <summary>
/// The configuration section for the DynamicServiceLocator
/// </summary>
public class DynamicServiceLocatorConfiguration : ConfigurationSection
{
[ConfigurationProperty("implementers")]
public ImplementersConfigurationElementCollection Implementers
{
get
{
return (ImplementersConfigurationElementCollection)base["implementers"];
}
}
public static DynamicServiceLocatorConfiguration GetInstance
{
get
{
return (DynamicServiceLocatorConfiguration)
ConfigurationManager.OpenExeConfiguration(Assembly.GetEntryAssembly().Location).GetSection("DynamicServiceLocator");
}
}
public ImplementersConfigurationElement this[string name]
{
get
{
return Implementers[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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.