Here are the examples of the csharp api System.Collections.Generic.List.Contains(X86InstructionId) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Dissasembler.cs
with GNU General Public License v3.0
from BitCrackers
with GNU General Public License v3.0
from BitCrackers
public static bool ShouldCheckInstruction(X86InstructionId id)
{
return new List<X86InstructionId> {
X86InstructionId.X86_INS_CALL,
X86InstructionId.X86_INS_JAE,
X86InstructionId.X86_INS_JA,
X86InstructionId.X86_INS_JBE,
X86InstructionId.X86_INS_JB,
X86InstructionId.X86_INS_JCXZ,
X86InstructionId.X86_INS_JECXZ,
X86InstructionId.X86_INS_JE,
X86InstructionId.X86_INS_JGE,
X86InstructionId.X86_INS_JG,
X86InstructionId.X86_INS_JL,
X86InstructionId.X86_INS_JMP,
X86InstructionId.X86_INS_JNO,
X86InstructionId.X86_INS_JNP,
X86InstructionId.X86_INS_JNS,
X86InstructionId.X86_INS_JO,
X86InstructionId.X86_INS_JP,
X86InstructionId.X86_INS_JRCXZ,
X86InstructionId.X86_INS_JS,
X86InstructionId.X86_INS_PUSH,
X86InstructionId.X86_INS_PUSHAL,
X86InstructionId.X86_INS_PUSHAW,
X86InstructionId.X86_INS_PUSHF,
X86InstructionId.X86_INS_PUSHFD,
X86InstructionId.X86_INS_PUSHFQ,
X86InstructionId.X86_INS_MOV,
}.Contains(id);
}