Пример #1
0
                public eab_Param_r11_Type Decode(BitArrayInputStream input)
                {
                    var type = new eab_Param_r11_Type();

                    type.InitDefaults();
                    switch (input.ReadBits(1))
                    {
                    case 0:
                        type.eab_Common_r11 = EAB_Config_r11.PerDecoder.Instance.Decode(input);
                        return(type);

                    case 1:
                    {
                        type.eab_PerPLMN_List_r11 = new List <EAB_ConfigPLMN_r11>();
                        var nBits = 3;
                        var num4  = input.ReadBits(nBits) + 1;
                        for (var i = 0; i < num4; i++)
                        {
                            var item = EAB_ConfigPLMN_r11.PerDecoder.Instance.Decode(input);
                            type.eab_PerPLMN_List_r11.Add(item);
                        }
                        return(type);
                    }
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
                public eab_Param_r11_Type Decode(BitArrayInputStream input)
                {
                    var type = new eab_Param_r11_Type();
                    type.InitDefaults();
                    switch (input.ReadBits(1))
                    {
                        case 0:
                            type.eab_Common_r11 = EAB_Config_r11.PerDecoder.Instance.Decode(input);
                            return type;

                        case 1:
                        {
                            type.eab_PerPLMN_List_r11 = new List<EAB_ConfigPLMN_r11>();
                            var nBits = 3;
                            var num4 = input.ReadBits(nBits) + 1;
                            for (var i = 0; i < num4; i++)
                            {
                                var item = EAB_ConfigPLMN_r11.PerDecoder.Instance.Decode(input);
                                type.eab_PerPLMN_List_r11.Add(item);
                            }
                            return type;
                        }
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }