using System.Collections.Generic;
static Dictionary<ushort, String> Opcodes
= new Dictionary<ushort, String>();
public static void Main()
Opcodes.Add(0x2005, "Blocked: TD46 Tool");
Console.WriteLine(isOpcodeAllowed(0x2005));
public static bool isOpcodeAllowed(ushort opcode)
Console.WriteLine("the opcode is {0}", opcode);
if (Opcodes.ContainsKey(opcode))
Console.WriteLine("Opcodes contains key {0}", opcode);
string text = Opcodes[opcode];