2 // bare-bones based implementation based on the references
3 // from the Microsoft reference source code to get things to build
6 using System.Runtime.Diagnostics;
8 namespace System.Runtime.Serialization {
9 internal static class FxTrace {
10 public static EtwDiagnosticTrace Trace {
16 public static bool ShouldTraceError = true;
17 public static bool ShouldTraceVerbose = true;
19 static ExceptionTrace exception;
20 public static ExceptionTrace Exception {
22 if (exception == null)
23 return new ExceptionTrace ("System.Runtime.Serialization", Trace);
28 public static bool IsEventEnabled (int index)
33 public static void UpdateEventDefinitions (EventDescriptor [] ed, ushort [] events) {}