Catel.Fody.InstructionExtensions.IsOpCode C# (CSharp) 메소드

IsOpCode() 공개 정적인 메소드

public static IsOpCode ( this instruction ) : bool
instruction this
리턴 bool
        public static bool IsOpCode(this Instruction instruction, params OpCode[] opCodes)
        {
            if (opCodes.Length == 0)
            {
                return true;
            }

            foreach (var opCode in opCodes)
            {
                if (instruction.OpCode == opCode)
                {
                    return true;
                }
            }

            return false;
        }