public purpose_Type Decode(BitArrayInputStream input) { purpose_Type type = new purpose_Type(); type.InitDefaults(); switch (input.ReadBits(1)) { case 0: type.handover = Handover.PerDecoder.Instance.Decode(input); return(type); case 1: type.cellChangeOrder = CellChangeOrder.PerDecoder.Instance.Decode(input); return(type); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public purpose_Type Decode(BitArrayInputStream input) { purpose_Type type = new purpose_Type(); type.InitDefaults(); input.ReadBit(); switch (input.ReadBits(2)) { case 0: type.handover = Handover.PerDecoder.Instance.Decode(input); return type; case 1: type.cellChangeOrder = CellChangeOrder.PerDecoder.Instance.Decode(input); return type; case 2: type.e_CSFB_r9 = E_CSFB_r9.PerDecoder.Instance.Decode(input); return type; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }