public void RemoveImport (MSBuildImport import) { AssertCanModify (); if (import.ParentObject == this) { import.RemoveIndent (); ChildNodes = ChildNodes.Remove (import); NotifyChanged (); } }
public void RemoveImport(MSBuildImport import) { AssertCanModify(); if (import.ParentObject == this) { import.RemoveIndent(); ChildNodes = ChildNodes.Remove(import); NotifyChanged(); } }
public void RemoveImport(MSBuildImport import) { AssertCanModify(); if (import.ParentProject != this) { throw new InvalidOperationException("Import object does not belong to this project"); } if (import.ParentObject == this) { import.RemoveIndent(); ChildNodes = ChildNodes.Remove(import); NotifyChanged(); } else { ((MSBuildImportGroup)import.ParentObject).RemoveImport(import); } }
public void RemoveImport (MSBuildImport import) { AssertCanModify (); if (import.ParentProject != this) throw new InvalidOperationException ("Import object does not belong to this project"); if (import.ParentObject == this) { import.RemoveIndent (); ChildNodes = ChildNodes.Remove (import); NotifyChanged (); } else ((MSBuildImportGroup)import.ParentObject).RemoveImport (import); }