Process() private method

private Process ( Mono.Cecil.GenericParameter parameter ) : void
parameter Mono.Cecil.GenericParameter
return void
    public void Execute()
    {
        var allTypes = ModuleDefinition.GetTypes()
                                       .Where(x => x.IsClass || x.IsInterface)
                                       .ToList();
        var genericParameterProcessor = new GenericParameterProcessor(ModuleDefinition);
        foreach (var typeDefinition in allTypes)
        {
            genericParameterProcessor.Process(typeDefinition);
            foreach (var methodDefinition in typeDefinition.Methods)
            {
                genericParameterProcessor.Process(methodDefinition);
            }
        }

        RemoveAttributesTypes(allTypes);
        RemoveReference();
    }
Example #2
0
    public void Execute()
    {
        var allTypes = ModuleDefinition.GetTypes()
                       .Where(x => x.IsClass || x.IsInterface)
                       .ToList();
        var genericParameterProcessor = new GenericParameterProcessor(ModuleDefinition);

        foreach (var typeDefinition in allTypes)
        {
            genericParameterProcessor.Process(typeDefinition);
            foreach (var methodDefinition in typeDefinition.Methods)
            {
                genericParameterProcessor.Process(methodDefinition);
            }
        }

        RemoveAttributesTypes(allTypes);
        RemoveReference();
    }