MonoDevelop.Projects.UnresolvedFileCollection.Remove C# (CSharp) Method

Remove() public method

public Remove ( ProjectFile file ) : void
file ProjectFile
return void
		public void Remove (ProjectFile file)
		{
			Remove (file, null);
		}

Same methods

UnresolvedFileCollection::Remove ( ProjectFile file, FilePath dependencyPath ) : void

Usage Example

Example #1
0
        void NotifyFileRemovedFromProject(IEnumerable <ProjectFile> objs)
        {
            if (!objs.Any())
            {
                return;
            }

            var args = new ProjectFileEventArgs();

            foreach (ProjectFile file in objs)
            {
                file.SetProject(null);
                args.Add(new ProjectFileEventInfo(this, file));
                if (DependencyResolutionEnabled)
                {
                    unresolvedDeps.Remove(file);
                    foreach (ProjectFile f in file.DependentChildren)
                    {
                        f.DependsOnFile = null;
                        if (!string.IsNullOrEmpty(f.DependsOn))
                        {
                            unresolvedDeps.Add(f);
                        }
                    }
                    file.DependsOnFile = null;
                }
            }
            NotifyModified("Files");
            OnFileRemovedFromProject(args);
        }