Boo.Lang.Compiler.TypeSystem.TypeSystemServices.IsAnyType C# (CSharp) Method

IsAnyType() public static method

Returns true if the type can be either a reference type or a value type. Currently it returns true only for an unconstrained generic parameter type.
public static IsAnyType ( IType type ) : bool
type IType
return bool
        public static bool IsAnyType(IType type)
        {
            var gp = type as IGenericParameter;
            return (null != gp && !gp.IsClass && !gp.IsValueType && 0 == gp.GetTypeConstraints().Length);
        }
TypeSystemServices