public void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.Item:
                    writer.WriteVariantOrPersistable(Item);
                    break;

                case MemberName.NextLeaf:
                    writer.Write(Next);
                    break;

                case MemberName.PrevLeaf:
                    writer.Write(Previous);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Esempio n. 2
0
        public void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_declaration);
            IScalabilityCache scalabilityCache = writer.PersistenceHelper as IScalabilityCache;

            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.ReportObjectModel:
                {
                    int value2 = scalabilityCache.StoreStaticReference(m_reportOM);
                    writer.Write(value2);
                    break;
                }

                case MemberName.Value:
                    writer.WriteVariantOrPersistable(m_value);
                    break;

                case MemberName.IsAggregateField:
                    writer.Write(m_isAggregationField);
                    break;

                case MemberName.AggregationFieldChecked:
                    writer.Write(m_aggregationFieldChecked);
                    break;

                case MemberName.FieldStatus:
                    writer.WriteEnum((int)m_fieldStatus);
                    break;

                case MemberName.Message:
                    writer.Write(m_exceptionMessage);
                    break;

                case MemberName.Properties:
                    writer.WriteStringObjectHashtable(m_properties);
                    break;

                case MemberName.FieldDef:
                {
                    int value = scalabilityCache.StoreStaticReference(m_fieldDef);
                    writer.Write(value);
                    break;
                }

                case MemberName.UsedInExpression:
                    writer.Write(m_usedInExpression);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Esempio n. 3
0
            public void Serialize(IntermediateFormatWriter writer)
            {
                writer.RegisterDeclaration(m_declaration);
                while (writer.NextMember())
                {
                    switch (writer.CurrentMember.MemberName)
                    {
                    case MemberName.Key:
                        writer.WriteVariantOrPersistable(Key);
                        break;

                    case MemberName.Value:
                        writer.Write(ValueIndex);
                        break;

                    default:
                        Global.Tracer.Assert(condition: false);
                        break;
                    }
                }
            }