Non-invocable member '' cannot be used like a method

爷,独闯天下 提交于 2019-11-28 02:25:19

Obviously you need

if (Project_name.Program.blockedOpcodes[current.Opcode] != 0)

instead of this:

if (Project_name.Program.blockedOpcodes(current.Opcode))

Because blockedOpcodes is a list rather then a method.

EDIT: You need to compare your list-value against 0 (or whatever you consider to be an "invalid" value) because you store int-values within the list.

EDIT: To check if a given OpCode is within your list simply call this:

if (blockedOpcodes.Contains(current.Opcode)) { /* ... */ }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!