internal static bool CanCompareToNull(Type type) { // This is a bit too conservative. return !type.IsValueType; }