コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }