NLog.LogEventInfo.IsSafeToDeferFormatting C# (CSharp) Method

IsSafeToDeferFormatting() private static method

private static IsSafeToDeferFormatting ( object value ) : bool
value object
return bool
        private static bool IsSafeToDeferFormatting(object value)
        {
            if (value == null)
            {
                return true;
            }

            return value.GetType().IsPrimitive() || (value is string);
        }