private IList CreateElements() { var elementList = (IList) Activator.CreateInstance(_listType); foreach (IConfigValue configValue in this) { var obj = new ConcreteConfiguration(configValue).ClientValue(_elementType); elementList.Add(obj); } return elementList; }
private IList CreateElements() { var elementList = (IList)Activator.CreateInstance(_listType); foreach (IConfigValue configValue in this) { var obj = new ConcreteConfiguration(configValue).ClientValue(_elementType); elementList.Add(obj); } return(elementList); }
private static object GetValueForKey(SectionIdentity sectionIdentity) { var concreteConfiguration = new ConcreteConfiguration(sectionIdentity.Section); return(concreteConfiguration.ClientValue(sectionIdentity.Type)); }