Ejemplo n.º 1
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Parameters:
                {
                    ParameterImplWrapper[] array = reader.ReadArrayOfRIFObjects <ParameterImplWrapper>();
                    if (array == null)
                    {
                        break;
                    }
                    m_opdParameters.Collection = new ParameterImpl[array.Length];
                    for (int i = 0; i < array.Length; i++)
                    {
                        if (array[i] != null)
                        {
                            m_opdParameters.Collection[i] = array[i].WrappedParameterImpl;
                        }
                    }
                    break;
                }

                case MemberName.Names:
                    m_opdParameters.NameMap = reader.ReadStringInt32Hashtable <Hashtable>();
                    break;

                case MemberName.Count:
                    m_opdParameters.Count = reader.ReadInt32();
                    break;

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