Ejemplo n.º 1
0
        void IPersistable.Deserialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Prompt:
                    m_prompt = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicPrompt:
                    m_dynamicPrompt = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.IsUserSupplied:
                    m_isUserSupplied = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Value:
                    m_values = reader.ReadVariantArray();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicValidValues:
                    m_dynamicValidValues = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicDefaultValue:
                    m_dynamicDefaultValue = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DependencyList:
                    m_dependencyList = reader.ReadListOfRIFObjects <ParameterInfoCollection>();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ValidValues:
                    m_validValues = reader.ReadListOfRIFObjects <ValidValueList>();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Label:
                    m_labels = reader.ReadStringArray();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DependencyIndexList:
                    m_dependencyIndexList = reader.ReadInt32Array();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        internal void Deserialize(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Name:
                    m_name = reader.ReadString();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DataType:
                    m_dataType = (DataType)reader.ReadEnum();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Nullable:
                    m_nullable = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.UsedInQuery:
                    m_usedInQuery = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.AllowBlank:
                    m_allowBlank = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.MultiValue:
                    m_multiValue = reader.ReadBoolean();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DefaultValue:
                    m_defaultValues = reader.ReadVariantArray();
                    break;

                case Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PromptUser:
                    m_promptUser = reader.ReadBoolean();
                    break;

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