public triggerType_Type Decode(BitArrayInputStream input) { triggerType_Type type = new triggerType_Type(); type.InitDefaults(); switch (input.readBits(1)) { case 0: type.event_ = event__Type.PerDecoder.Instance.Decode(input); return(type); case 1: type.periodical = periodical_Type.PerDecoder.Instance.Decode(input); return(type); } throw new Exception(GetType().Name + ":NoChoice had been choose"); }
public triggerType_Type Decode(BitArrayInputStream input) { triggerType_Type type = new triggerType_Type(); type.InitDefaults(); switch (input.ReadBits(1)) { case 0: type.event_ = event__Type.PerDecoder.Instance.Decode(input); return type; case 1: type.periodical = periodical_Type.PerDecoder.Instance.Decode(input); return type; } throw new Exception(GetType().Name + ":NoChoice had been choose"); }