void SetAction(AssemblyDefinition assembly) { AssemblyAction action = AssemblyAction.Link; AssemblyNameDefinition name = assembly.Name; if (_actions.Contains(name.Name)) { action = (AssemblyAction)_actions [name.Name]; } else if (IsCore(name)) { action = _coreAction; } _annotations.SetAction(assembly, action); }
protected void SetDefaultAction(AssemblyDefinition assembly) { AssemblyNameDefinition name = assembly.Name; if (_actions.TryGetValue(name.Name, out AssemblyAction action)) { } else if (IsCore(name)) { action = _coreAction; } else { action = _userAction; } _annotations.SetAction(assembly, action); }