33 references to TypeUtil
System.Configuration (33)
System\Configuration\BaseConfigurationRecord.cs (1)
2243
bool isFactoryTrustedWithoutAptca =
TypeUtil
.IsTypeFromTrustedAssemblyWithoutAptca(factory.GetType());
System\Configuration\CallbackValidatorAttribute.cs (1)
44
_callbackMethod = (ValidatorCallback)
TypeUtil
.CreateDelegateRestricted(_declaringType, typeof(ValidatorCallback), methodInfo);
System\Configuration\Configuration.cs (1)
48
IInternalConfigHost configHost = (IInternalConfigHost)
TypeUtil
.CreateInstanceWithReflectionPermission(typeConfigHost);
System\Configuration\ConfigurationElement.cs (1)
88
ConfigurationElement element = (ConfigurationElement)
TypeUtil
.CreateInstanceRestricted(callingType: GetType(), targetType: type);
System\Configuration\ConfigurationManagerHelperFactory.cs (1)
34
return
TypeUtil
.CreateInstance<IConfigurationManagerHelper>(ConfigurationManagerHelperTypeString);
System\Configuration\ConfigurationProperty.cs (3)
45
defaultValue =
TypeUtil
.CreateInstanceWithReflectionPermission(type);
99
typeConverter =
TypeUtil
.CreateInstanceRestricted<TypeConverter>(info.DeclaringType, attribConverter.ConverterTypeName);
257
defaultValue =
TypeUtil
.CreateInstanceWithReflectionPermission(_type);
System\Configuration\ConfigurationValidatorAttribute.cs (1)
44
return (ConfigurationValidatorBase)
TypeUtil
.CreateInstanceRestricted(_declaringType, _validator);
System\Configuration\FactoryRecord.cs (4)
250
t1 =
TypeUtil
.GetTypeWithReflectionPermission(host, typeName, false);
251
t2 =
TypeUtil
.GetTypeWithReflectionPermission(host, _factoryTypeName, false);
254
t1 =
TypeUtil
.GetTypeWithReflectionPermission(typeName, false);
255
t2 =
TypeUtil
.GetTypeWithReflectionPermission(_factoryTypeName, false);
System\Configuration\Internal\configsystem.cs (1)
18
_configHost = (IInternalConfigHost)
TypeUtil
.CreateInstanceWithReflectionPermission(typeConfigHost);
System\Configuration\Internal\InternalConfigHost.cs (1)
390
return
TypeUtil
.IsCallerFullTrust;
System\Configuration\MgmtConfigurationRecord.cs (9)
126
Type type =
TypeUtil
.GetTypeWithReflectionPermission(Host, factoryRecord.FactoryTypeName, true);
133
TypeUtil
.VerifyAssignableType(typeof(IConfigurationSectionHandler), type, true);
137
ConstructorInfo ctor =
TypeUtil
.GetConstructorWithReflectionPermission(type, typeof(ConfigurationSection), true);
148
ConfigurationSection configSection = (ConfigurationSection)
TypeUtil
.InvokeCtorWithReflectionPermission(ctor);
182
type =
TypeUtil
.GetTypeWithReflectionPermission(Host, factoryRecord.FactoryTypeName, true);
185
ConstructorInfo ctor =
TypeUtil
.GetConstructorWithReflectionPermission(type, typeof(ConfigurationSectionGroup), true);
330
configSectionGroup = (ConfigurationSectionGroup)
TypeUtil
.InvokeCtorWithReflectionPermission(ctor);
813
factoryRecord.Factory =
TypeUtil
.GetConstructorWithReflectionPermission(
816
factoryRecord.IsFactoryTrustedWithoutAptca =
TypeUtil
.IsTypeFromTrustedAssemblyWithoutAptca(configSection.GetType());
System\Configuration\ProtectedConfigurationSection.cs (3)
43
ProtectedConfigurationProvider provider = (ProtectedConfigurationProvider)
TypeUtil
.CreateInstanceWithReflectionPermission(t);
57
Type t =
TypeUtil
.GetTypeWithReflectionPermission(pn.Type, true);
63
if (!
TypeUtil
.IsTypeAllowedInConfig(t)) {
System\Configuration\RuntimeConfigurationRecord.cs (5)
150
Type type =
TypeUtil
.GetTypeWithReflectionPermission(configRecord.Host, factoryRecord.FactoryTypeName, true);
154
_sectionCtor =
TypeUtil
.GetConstructorWithReflectionPermission(type, typeof(ConfigurationSection), true);
161
TypeUtil
.VerifyAssignableType(typeof(IConfigurationSectionHandler), type, true);
164
_sectionHandler = (IConfigurationSectionHandler)
TypeUtil
.CreateInstanceWithReflectionPermission(type);
223
ConfigurationSection configSection = (ConfigurationSection)
TypeUtil
.InvokeCtorWithReflectionPermission(_sectionCtor);
System\Configuration\TypeNameConverter.cs (1)
40
Type result =
TypeUtil
.GetTypeWithReflectionPermission((string)data, false);