Here are the examples of the csharp api System.Collections.Generic.List.Contains(WorkspacePath) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : WorkspaceServicePlus.cs
with Microsoft Public License
from PixelVision8
with Microsoft Public License
from PixelVision8
public void AddDisk(WorkspacePath path, IFileSystem disk)
{
// If we are out of open disks, remove the last one
if (TotalDisks == MaxDisks) RemoveDisk(Disks.Last());
// Attempt to remove the disk if it is already inserted
RemoveDisk(path);
// Add the new disk to the disk mount
Mounts.Add(new KeyValuePair<WorkspacePath, IFileSystem>(path, disk));
if (!_disks.Contains(path)) _disks.Add(path);
// InvalidateDisks();
}
19
Source : WorkspaceServicePlus.cs
with Microsoft Public License
from PixelVision8
with Microsoft Public License
from PixelVision8
public void RemoveDisk(WorkspacePath path)
{
if (Exists(path))
{
// Check to see if this is a zip
SaveDisk(path);
// Remove disk from the mount point
Mounts.Remove(Get(path));
if (_disks.Contains(path)) _disks.Remove(path);
//
// InvalidateDisks();
}
}