Exemple #1
0
        public void Serialize(IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case MemberName.IntermediateFormatVersionMajor:
                    writer.Write(m_major);
                    break;

                case MemberName.IntermediateFormatVersionMinor:
                    writer.Write(m_minor);
                    break;

                case MemberName.IntermediateFormatVersionBuild:
                    writer.Write(m_build);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        void IPersistable.Serialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatWriter writer)
        {
            Serialize(writer);
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Prompt:
                    writer.Write(m_prompt);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicPrompt:
                    writer.Write(m_dynamicPrompt);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.IsUserSupplied:
                    writer.Write(m_isUserSupplied);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Value:
                    writer.Write(m_values);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicValidValues:
                    writer.Write(m_dynamicValidValues);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicDefaultValue:
                    writer.Write(m_dynamicDefaultValue);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ValidValues:
                    writer.Write(m_validValues);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Label:
                    writer.Write(m_labels);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DependencyIndexList:
                    m_dependencyIndexList = null;
                    if (m_dependencyList != null)
                    {
                        m_dependencyIndexList = new int[m_dependencyList.Count];
                        for (int i = 0; i < m_dependencyList.Count; i++)
                        {
                            m_dependencyIndexList[i] = m_dependencyList[i].IndexInCollection;
                        }
                    }
                    writer.Write(m_dependencyIndexList);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        void IPersistable.Serialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Code:
                    writer.WriteEnum((int)m_code);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Severity:
                    writer.WriteEnum((int)m_severity);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ObjectType:
                    writer.WriteEnum((int)m_objectType);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ObjectName:
                    writer.Write(m_objectName);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PropertyName:
                    writer.Write(m_propertyName);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Message:
                    writer.Write(m_message);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ProcessingMessages:
                    writer.Write(m_processingMessages);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.CommonCode:
                    writer.WriteEnum((int)m_commonCode);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        void IPersistable.Serialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Label:
                    writer.Write(m_label);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Value:
                    writer.Write(m_value);
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Exemple #5
0
        internal void Serialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatWriter writer)
        {
            writer.RegisterDeclaration(m_Declaration);
            while (writer.NextMember())
            {
                switch (writer.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Name:
                    writer.Write(m_name);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DataType:
                    writer.WriteEnum((int)m_dataType);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Nullable:
                    writer.Write(m_nullable);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.UsedInQuery:
                    writer.Write(m_usedInQuery);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.AllowBlank:
                    writer.Write(m_allowBlank);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.MultiValue:
                    writer.Write(m_multiValue);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DefaultValue:
                    writer.Write(m_defaultValues);
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PromptUser:
                    writer.Write(m_promptUser);
                    break;

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