NServiceBus.ExceptionHeaderHelper.Truncate C# (CSharp) Method

Truncate() static private method

static private Truncate ( this value, int maxLength ) : string
value this
maxLength int
return string
        static string Truncate(this string value, int maxLength) =>
            string.IsNullOrEmpty(value)
                ? value
                : (value.Length <= maxLength
                    ? value
                    : value.Substring(0, maxLength));
    }
ExceptionHeaderHelper