Exemplo n.º 1
0
 public bool CanApplyOptimization(CodeOptimizations optimization, AssemblyDefinition context)
 {
     return(Annotations.GetAction(context) == AssemblyAction.Link &&
            IsOptimizationEnabled(optimization, context));
 }
Exemplo n.º 2
0
 public void SetAction(AssemblyDefinition assembly, AssemblyAction action)
 {
     RegisterAssembly(assembly);
     Annotations.SetAction(assembly, action);
 }