in src/Microsoft.VisualStudio.Validation/ExceptionExtensions.cs [27:39]
public static T AddData<T>(this T exception, string key, params object[]? values)
#pragma warning restore SA1011 // Closing square brackets should be spaced correctly https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2989
where T : Exception
{
Requires.NotNull(exception, nameof(exception));
if (values?.Length > 0)
{
exception.Data.Add(key, values);
}
return exception;
}