AotCompatlyzer.ReplaceCE.OnFile C# (CSharp) Method

OnFile() public method

public OnFile ( string fileName, Mono.Cecil.ModuleDefinition module ) : void
fileName string
module Mono.Cecil.ModuleDefinition
return void
        public void OnFile(string fileName, ModuleDefinition module)
        {
            replaced = 0;
            skipped = 0;

            TypeReference delegateTypeDef = module.Import(typeof(Delegate));

             combineR = delegateTypeDef.Module.Import(
                typeof(Delegate).GetMethod("Combine",
                                       new Type[] { typeof(Delegate), typeof(Delegate) }));

            removeR = delegateTypeDef.Module.Import(
                typeof(Delegate).GetMethod("Remove",
                                       new Type[] { typeof(Delegate), typeof(Delegate) }));
        }