public object Get(Type type) { var sectionName = NamingConvention.Current.SectionNameByInterfaceOrClassType(type); var section = ConfigurationManager.GetSection(sectionName); if (section == null) { throw new ConfigurationErrorsException("There is no section named {0}".ToFormat(sectionName)); } return(_cachedConfigs.Get(new SectionIdentity(sectionName, type, (ConfigurationSectionForInterface)section))); }
public object ClientValue(PropertyInfo property) { return(_cachedValues.Get(property)); }
public object Value(PropertyInfo property) { return(_list.Get(0).GetEnumerator()); }