internal string DecodeMessageTag(byte[] InputData, int Index) { var Tag = new MessageTag(InputData, Index); KeyValuePair <string, MsgTagParamType> MessageTagInfo = MessageTagDictionary.ElementAt(Tag.Group).ElementAt(Tag.Index); string Argument = ""; switch (MessageTagInfo.Value) { case MsgTagParamType.U8: Argument = GetDataString(Tag.GetParamU8(), DataType.HexByte); break; case MsgTagParamType.U16: Argument = GetDataString(Tag.GetParamU16(), DataType.HexUShort); break; // TODO: Rest of types } return(string.Format(MessageTagInfo.Key, Argument)); // TODO: Argument needs to be an array }