private static bool IsSafeToDeferFormatting(object value) { if (value == null) { return true; } return value.GetType().IsPrimitive() || (value is string); }