How do I emit a call to String.op_Equality in Mono.Cecil
See the question and my original answer on StackOverflowSomething like this:
MethodReference ope = myMainModule.Import(typeof(string).GetMethod("op_Equality"));
il.Emit(Opcodes.Call, ope);
Something like this:
MethodReference ope = myMainModule.Import(typeof(string).GetMethod("op_Equality"));
il.Emit(Opcodes.Call, ope);