[Mono-list] StackTrace implementation?

Dietmar Maurer dietmar@ximian.com
22 May 2002 18:45:53 +0200


On Tue, 2002-05-21 at 21:27, Lawrence Pit wrote:

> +		public static string StackTrace	{
> +			get {
> +				try {
> +					throw new Exception ();
> +				} catch (Exception e) {
> +					return e.StackTrace;
> +				}
>  			}
>  		}

Hi Lawrence,

AFAIK this will always create a trace with only one frame, namely the
"public static string StackTrace" frame itself. Please can you verify
that this produces the right result, compatible with the Microsoft
implementation?

- Dietmar