public void Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(ScalableDictionaryValues.m_declaration); while (writer.NextMember()) { switch (writer.CurrentMember.MemberName) { case MemberName.Keys: writer.WriteVariantOrPersistableArray(this.m_keys); break; case MemberName.Values: writer.WriteVariantOrPersistableArray(this.m_values); break; case MemberName.Count: writer.Write(this.m_count); break; default: Global.Tracer.Assert(false); break; } } }
public void Serialize(IntermediateFormatWriter writer) { writer.RegisterDeclaration(StorableArray.m_declaration); while (writer.NextMember()) { MemberName memberName = writer.CurrentMember.MemberName; if (memberName == MemberName.Array) { writer.WriteVariantOrPersistableArray(this.Array); } else { Global.Tracer.Assert(false); } } }