Exemplo 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;
                }
            }
        }
Exemplo n.º 2
0
 internal ParameterInfo(ParameterInfo source)
     : base(source)
 {
     m_isUserSupplied      = source.m_isUserSupplied;
     m_valuesChanged       = source.m_valuesChanged;
     m_dynamicValidValues  = source.m_dynamicValidValues;
     m_dynamicDefaultValue = source.m_dynamicDefaultValue;
     m_state                   = source.State;
     m_othersDependOnMe        = source.m_othersDependOnMe;
     m_useExplicitDefaultValue = source.m_useExplicitDefaultValue;
     m_prompt                  = source.m_prompt;
     m_dynamicPrompt           = source.m_dynamicPrompt;
     if (source.m_values != null)
     {
         int num = source.m_values.Length;
         m_values = new object[num];
         for (int i = 0; i < num; i++)
         {
             m_values[i] = source.m_values[i];
         }
     }
     if (source.m_labels != null)
     {
         int num2 = source.m_labels.Length;
         m_labels = new string[num2];
         for (int j = 0; j < num2; j++)
         {
             m_labels[j] = source.m_labels[j];
         }
     }
     if (source.m_dependencyList != null)
     {
         int count = source.m_dependencyList.Count;
         m_dependencyList = new ParameterInfoCollection(count);
         for (int k = 0; k < count; k++)
         {
             m_dependencyList.Add(source.m_dependencyList[k]);
         }
     }
     if (source.m_validValues != null)
     {
         int count2 = source.m_validValues.Count;
         m_validValues = new ValidValueList(count2);
         for (int l = 0; l < count2; l++)
         {
             m_validValues.Add(source.m_validValues[l]);
         }
     }
 }