Example #1
0
 public static string Info(this FormatStringUtilitiesHandle <Exception> hnd, ExceptionInfoFormattingOptions options, IFormatProvider formatProvider)
 {
     if (hnd.Object is null)
     {
         return(GetNullValueText(formatProvider: formatProvider));
     }
     else
     {
         return(hnd.Object.ToExceptionInfo().ToString(options: options, singleInfoFormatter: null));
     }
 }
Example #2
0
 public static string InfoNLI2(this FormatStringUtilitiesHandle <Exception> hnd, ExceptionInfoFormattingOptions options)
 => Environment.NewLine + Info(hnd: hnd, options: options, formatProvider: null).IndentLines2();
Example #3
0
 public static string Info(this FormatStringUtilitiesHandle <Exception> hnd, ExceptionInfoFormattingOptions options)
 => Info(hnd: hnd, options: options, formatProvider: null);