System.Reflection.Emit.TypeBuilderInstantiation.IsSubclassOf C# (CSharp) Method

IsSubclassOf() private method

private IsSubclassOf ( Type c ) : bool
c System.Type
return bool
        public override bool IsSubclassOf(Type c)
        {
            throw new NotSupportedException();
/*        
            if (!c.IsGenericType)
                return false;

            if (c.IsGenericTypeDefinition)
                return false;

            Type cgtd = c.GetGenericTypeDefinition();
            Type gtd = GetGenericTypeDefinition();

            while (gtd != cgtd)
            {
                gtd = gtd.BaseType;
                if (gtd == null)
                    return false;
            }


            for (int i = 0; i < gtd.GetGenericArguments().Length; i++)
            {
                if (gtd.GetGenericArguments()[i] != c.GetGenericArguments()[i])
                    return false;
            }

            return true;
*/            
        }
        #endregion