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