public OpCode GetNextOpCode(double currentIndex) { OpCode result = OpCodes.Where(i => i.Index > currentIndex).OrderBy(m => m.Index).FirstOrDefault(); if (result == null) { result = ModuleOpCodes.Where(i => i.Index > currentIndex).OrderBy(m => m.Index).FirstOrDefault(); } return(result); }
} //Enable obfuscation public OpCode GetOpCodeByIndex(double index) { OpCode result = OpCodes.Where(i => i.Index == index).FirstOrDefault(); if (result == null) { result = ModuleOpCodes.Where(i => i.Index == index).FirstOrDefault(); } return(result); }