ReleaseProjectBuilder() static private method

static private ReleaseProjectBuilder ( MonoDevelop.Projects.Formats.MSBuild.RemoteBuildEngine engine ) : void
engine MonoDevelop.Projects.Formats.MSBuild.RemoteBuildEngine
return void
 public void Dispose()
 {
     if (engine != null)
     {
         if (builder != null)
         {
             engine.UnloadProject(builder);
         }
         MSBuildProjectService.ReleaseProjectBuilder(engine);
         GC.SuppressFinalize(this);
         engine  = null;
         builder = null;
     }
 }
Exemplo n.º 2
0
		public void Dispose ()
		{
			if (!MSBuildProjectService.ShutDown && engine != null) {
				try {
					if (builder != null)
						engine.UnloadProject (builder);
					MSBuildProjectService.ReleaseProjectBuilder (engine);
				} catch {
					// Ignore
				}
				GC.SuppressFinalize (this);
				engine = null;
				builder = null;
			}
		}