static void Main(string[] args) { { var text = "demo"; var result = Simple.StringExtensions.Reverse(text); } { var text = "demo"; var result = text.Reverse(); } { var exception = new InvalidOperationException( "An invalid operation occurred", new NotSupportedException( "The operation is not supported", new InvalidCastException( "Cannot apply cast!"))); Console.WriteLine(exception.AllMessages()); Console.WriteLine(exception.AllMessages(true)); } }