System.Configuration.TypeUtil.GetTypeWithReflectionPermission C# (CSharp) Method

GetTypeWithReflectionPermission() private method

private GetTypeWithReflectionPermission ( string typeString, bool throwOnError ) : Type
typeString string
throwOnError bool
return System.Type
        static internal Type GetTypeWithReflectionPermission(string typeString, bool throwOnError) {
            return GetTypeImpl(typeString, throwOnError);
        }

Same methods

TypeUtil::GetTypeWithReflectionPermission ( IInternalConfigHost host, string typeString, bool throwOnError ) : Type

Usage Example

        internal bool IsEquivalentType(IInternalConfigHost host, string typeName)
        {
            try {
                if (_factoryTypeName == typeName)
                {
                    return(true);
                }

                Type t1, t2;

                if (host != null)
                {
                    t1 = TypeUtil.GetTypeWithReflectionPermission(host, typeName, false);
                    t2 = TypeUtil.GetTypeWithReflectionPermission(host, _factoryTypeName, false);
                }
                else
                {
                    t1 = TypeUtil.GetTypeWithReflectionPermission(typeName, false);
                    t2 = TypeUtil.GetTypeWithReflectionPermission(_factoryTypeName, false);
                }

                return((t1 != null) && (t1 == t2));
            }
            catch {
            }

            return(false);
        }
All Usage Examples Of System.Configuration.TypeUtil::GetTypeWithReflectionPermission