33 references to TypeUtil
System.Configuration.ConfigurationManager (33)
System\Configuration\ApplicationSettingsBase.cs (2)
476SettingsProvider settingsProvider = TypeUtil.CreateInstance(providerType) as SettingsProvider; 619SettingsProvider spdr = TypeUtil.CreateInstance(providerType) as SettingsProvider;
System\Configuration\BaseConfigurationRecord.cs (1)
130private const string ProtectedConfigurationSectionTypeName = "System.Configuration.ProtectedConfigurationSection, " + TypeUtil.ConfigurationManagerAssemblyName;
System\Configuration\ClientSettingsStore.cs (4)
223private const string ClientConfigurationHostTypeName = "System.Configuration.ClientConfigurationHost, " + TypeUtil.ConfigurationManagerAssemblyName; 224private const string InternalConfigConfigurationFactoryTypeName = "System.Configuration.Internal.InternalConfigConfigurationFactory, " + TypeUtil.ConfigurationManagerAssemblyName; 240s_configFactory ??= TypeUtil.CreateInstance<IInternalConfigConfigurationFactory>(InternalConfigConfigurationFactoryTypeName); 258Host = TypeUtil.CreateInstance<IInternalConfigHost>(ClientConfigurationHostTypeName);
System\Configuration\Configuration.cs (1)
33IInternalConfigHost configHost = (IInternalConfigHost)TypeUtil.CreateInstance(typeConfigHost);
System\Configuration\ConfigurationElement.cs (1)
231ConfigurationElement element = (ConfigurationElement)TypeUtil.CreateInstance(type);
System\Configuration\ConfigurationProperty.cs (3)
32defaultValue = TypeUtil.CreateInstance(type); 87typeConverter = TypeUtil.CreateInstance<TypeConverter>(((TypeConverterAttribute)attribute).ConverterTypeName); 323defaultValue = TypeUtil.CreateInstance(Type);
System\Configuration\ConfigurationValidatorAttribute.cs (1)
29=> (ConfigurationValidatorBase)TypeUtil.CreateInstance(ValidatorType);
System\Configuration\FactoryRecord.cs (4)
213t1 = TypeUtil.GetType(host, typeName, false); 214t2 = TypeUtil.GetType(host, FactoryTypeName, false); 218t1 = TypeUtil.GetType(typeName, false); 219t2 = TypeUtil.GetType(FactoryTypeName, false);
System\Configuration\Internal\ConfigSystem.cs (1)
18IInternalConfigHost host = (IInternalConfigHost)TypeUtil.CreateInstance(typeConfigHost);
System\Configuration\MgmtConfigurationRecord.cs (6)
127Type type = TypeUtil.GetType(Host, factoryRecord.FactoryTypeName, throwOnError: true); 133TypeUtil.VerifyAssignableType(typeof(IConfigurationSectionHandler), type, true); 137ConstructorInfo ctor = TypeUtil.GetConstructor(type, typeof(ConfigurationSection), true); 169: TypeUtil.GetType(Host, factoryRecord.FactoryTypeName, true); 171ConstructorInfo ctor = TypeUtil.GetConstructor(type, 704Factory = TypeUtil.GetConstructor(
System\Configuration\ProtectedConfigurationSection.cs (2)
67(ProtectedConfigurationProvider)TypeUtil.CreateInstance(t); 79Type t = TypeUtil.GetType(pn.Type, true);
System\Configuration\RuntimeConfigurationRecord.cs (4)
95Type type = TypeUtil.GetType(configRecord.Host, factoryRecord.FactoryTypeName, 101_sectionCtor = TypeUtil.GetConstructor(type, typeof(ConfigurationSection), 110TypeUtil.VerifyAssignableType(typeof(IConfigurationSectionHandler), type, true); 114(IConfigurationSectionHandler)TypeUtil.CreateInstance(type);
System\Configuration\SettingsPropertyValue.cs (2)
152return TypeUtil.CreateInstance(Property.PropertyType); 187value = TypeUtil.CreateInstance(Property.PropertyType);
System\Configuration\TypeNameConverter.cs (1)
25Type result = TypeUtil.GetType((string)data, false);