Dispose() public method

public Dispose ( ) : void
return void
Exemplo n.º 1
0
        async Task <XmlElement> Save(ProjectItem it)
        {
            Project p = CreateProject();

            p.Items.Add(it);
            try {
                await p.SaveAsync(new MonoDevelop.Core.ProgressMonitor());

                return(LoadElement(p.FileName, it.Include));
            } finally {
                System.IO.File.Delete(p.FileName);
                p.Dispose();
            }
        }