public void Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(SortFilterEventInfo.m_Declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.EventSource: writer.WriteGlobalReference(this.m_eventSource); break; case MemberName.EventSourceScopeInfo: writer.WriteArrayOfListsOfPrimitives(this.m_eventSourceScopeInfo); break; default: Global.Tracer.Assert(false); break; } } }