public ResetType Decode(BitArrayInputStream input) { int num4; ResetType type = new ResetType(); type.InitDefaults(); input.ReadBit(); switch (input.ReadBits(1)) { case 0: num4 = 1; type.s1_Interface = (ResetAll)input.ReadBits(num4); return(type); case 1: { input.skipUnreadedBits(); type.partOfS1_Interface = new List <ProtocolIE_Field>(); num4 = 8; int num6 = input.ReadBits(num4) + 1; for (int i = 0; i < num6; i++) { ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input); type.partOfS1_Interface.Add(item); } return(type); } } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public ResetType Decode(BitArrayInputStream input) { int num4; ResetType type = new ResetType(); type.InitDefaults(); input.readBit(); switch (input.readBits(1)) { case 0: num4 = 1; type.s1_Interface = (ResetAll)input.readBits(num4); return type; case 1: { input.skipUnreadedBits(); type.partOfS1_Interface = new List<ProtocolIE_Field>(); num4 = 8; int num6 = input.readBits(num4) + 1; for (int i = 0; i < num6; i++) { ProtocolIE_Field item = ProtocolIE_Field.PerDecoder.Instance.Decode(input); type.partOfS1_Interface.Add(item); } return type; } } throw new Exception(GetType().Name + ":NoChoice had been choose"); }