public DecompilerTableEntry(Type instructionType, string name, string operand, InstructionFlags flags, CustomDecompilerDelegate customDecompiler, int?id) { if (instructionType == null) { throw new ArgumentNullException(nameof(instructionType)); } InstructionType = instructionType; Name = name; Operand = operand; Flags = flags; CustomDecompiler = customDecompiler; Id = id; }
private static DecompilerTableEntry CreateCustomEntry(string name, string operand = "", InstructionFlags flags = InstructionFlags.INSTRUCTION_NONE, CustomDecompilerDelegate customDecompiler = null, int?id = null) { return(new DecompilerTableEntry(typeof(Custom), name, operand, flags, customDecompiler, id)); }
private static DecompilerTableEntry CreateEntry <T>(string operand = "", InstructionFlags flags = InstructionFlags.INSTRUCTION_SWITCH, CustomDecompilerDelegate customDecompiler = null, int?id = null) where T : BaseInstruction { return(new DecompilerTableEntry(typeof(T), string.Empty, operand, flags, customDecompiler, id)); }