I’m looking through some code and I found e.ToString() and I was wondering if there is a difference to using the ToString() method instead of .Message ?
Reading below, it sounds like it returns more info.
ToString
Supported by the .NET Compact Framework.
Overridden. Creates and returns a string representation of the current exception.
Message
Supported by the .NET Compact Framework.
Gets a message that describes the current exception.
If you’re looking to get as much information as possible in one go, call
ToString():It’s convenient that you don’t have to append all the individual elements together yourself, checking to make sure none are null, etc. It’s all built in…
Exception.ToString Method
You can also check out the actual source code at reference.microsoft.com.