Upgraded to .NET 2.0 and VS.NET'05 and while compiling code that was
fine under 1.1/2003 I'm getting a fatal compiler error:
Conditional member 'GetTraceMode(out System.Web.TraceMode)' cannot have
an out parameter
and here's the method:
[Conditional("TRACE")]
public static void GetTraceMode(out TraceMode mode)
{
mode = TraceMode.Default;
HttpContext context = HttpContext.Current;
if (context != null)
mode = context.Trace.TraceMode;
}
I have to assume this is by design in C# 2.0, but what's the rationale?
I can't find anything about this in the C# language reference.
Thanks.
-glenn-