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