public static bool IsNullable(IType type) { var et = type as ExternalType; return (null != et && et.ActualType.IsGenericType && et.ActualType.GetGenericTypeDefinition() == Types.Nullable); }