Example #1
0
        public void registerTool(string ext, ICompilationTool tool)
        {
            if (_tools.ContainsKey(ext))
            {
                throw new InvalidOperationException("Duplicate tool");
            }

            _tools[ext] = tool;
        }
Example #2
0
        public void registerTool(string ext, ICompilationTool tool)
        {
            if (_tools.ContainsKey(ext))
                throw new InvalidOperationException("Duplicate tool");

            _tools[ext] = tool;
        }