Пример #1
0
        public override void AddNewImport(string name, MSBuildImport beforeImport = null)
        {
            var data = new ImportData {
                Target = name
            };

            if (beforeImport != null)
            {
                var other = (ImportData)beforeImport;
                int i     = imports.IndexOf(other);
                if (i != -1)
                {
                    imports.Insert(i, data);
                    return;
                }
            }
            imports.Add(data);
        }
Пример #2
0
 public abstract void RemoveImport(MSBuildImport import);
Пример #3
0
 public abstract void AddNewImport(string name, MSBuildImport beforeImport = null);
Пример #4
0
        public override void RemoveImport(MSBuildImport import)
        {
            var data = (ImportData)import;

            imports.Remove(data);
        }