I would like to define an extension method that recurses into a nested structure of, you guessed it, exceptions. This is what I would like to do...
public static string TellMeEverything(this Exception ex)
return ex.InnerException?.TellMeEverything() + ex.Message + ex.StackTrace;
'Exception' does not contain a definition for 'TellMeEverything' and no extension method 'TellMeEverything' accepting a first argument of type 'Exception' could be found (are you missing a using directive or an assembly reference?)
class utils should also be
public static in order for it to be discoverable as an extension to