public void Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(RuntimeUserSortTargetInfo.m_declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.SortTree: writer.Write(this.m_sortTree); break; case MemberName.AggregateRows: writer.Write(this.m_aggregateRows); break; case MemberName.SortFilterInfoIndices: writer.WriteListOfPrimitives(this.m_sortFilterInfoIndices); break; case MemberName.TargetForNonDetailSort: writer.WriteVariantVariantHashtable(this.m_targetForNonDetailSort); break; case MemberName.TargetForDetailSort: writer.WriteVariantVariantHashtable(this.m_targetForDetailSort); break; default: Global.Tracer.Assert(false); break; } } }
public override void Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(m_declaration); while (writer.NextMember()) { MemberName memberName = writer.CurrentMember.MemberName; if (memberName == MemberName.DistinctValues) { writer.WriteVariantVariantHashtable(m_distinctValues); } else { Global.Tracer.Assert(condition: false); } } }