Exemplo n.º 1
0
                public cellsToAddModList_Type Decode(BitArrayInputStream input)
                {
                    int num2;
                    cellsToAddModList_Type type = new cellsToAddModList_Type();

                    type.InitDefaults();
                    switch (input.ReadBits(1))
                    {
                    case 0:
                    {
                        type.cellsToAddModListUTRA_FDD = new List <CellsToAddModUTRA_FDD>();
                        num2 = 5;
                        int num4 = input.ReadBits(num2) + 1;
                        for (int i = 0; i < num4; i++)
                        {
                            CellsToAddModUTRA_FDD item = CellsToAddModUTRA_FDD.PerDecoder.Instance.Decode(input);
                            type.cellsToAddModListUTRA_FDD.Add(item);
                        }
                        return(type);
                    }

                    case 1:
                    {
                        type.cellsToAddModListUTRA_TDD = new List <CellsToAddModUTRA_TDD>();
                        num2 = 5;
                        int num6 = input.ReadBits(num2) + 1;
                        for (int j = 0; j < num6; j++)
                        {
                            CellsToAddModUTRA_TDD dutra_tdd = CellsToAddModUTRA_TDD.PerDecoder.Instance.Decode(input);
                            type.cellsToAddModListUTRA_TDD.Add(dutra_tdd);
                        }
                        return(type);
                    }
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
Exemplo n.º 2
0
 public cellsToAddModList_Type Decode(BitArrayInputStream input)
 {
     int num2;
     cellsToAddModList_Type type = new cellsToAddModList_Type();
     type.InitDefaults();
     switch (input.ReadBits(1))
     {
         case 0:
             {
                 type.cellsToAddModListUTRA_FDD = new List<CellsToAddModUTRA_FDD>();
                 num2 = 5;
                 int num4 = input.ReadBits(num2) + 1;
                 for (int i = 0; i < num4; i++)
                 {
                     CellsToAddModUTRA_FDD item = CellsToAddModUTRA_FDD.PerDecoder.Instance.Decode(input);
                     type.cellsToAddModListUTRA_FDD.Add(item);
                 }
                 return type;
             }
         case 1:
             {
                 type.cellsToAddModListUTRA_TDD = new List<CellsToAddModUTRA_TDD>();
                 num2 = 5;
                 int num6 = input.ReadBits(num2) + 1;
                 for (int j = 0; j < num6; j++)
                 {
                     CellsToAddModUTRA_TDD dutra_tdd = CellsToAddModUTRA_TDD.PerDecoder.Instance.Decode(input);
                     type.cellsToAddModListUTRA_TDD.Add(dutra_tdd);
                 }
                 return type;
             }
     }
     throw new Exception(GetType().Name + ":NoChoice had been choose");
 }