FileExists() public method

Returns true iff the named file exists in this directory.
public FileExists ( System name ) : bool
name System
return bool
Exemplo n.º 1
0
 public override bool FileExists(string name)
 {
     lock (this)
     {
         return(cache.FileExists(name) || @delegate.FileExists(name));
     }
 }
Exemplo n.º 2
0
 public override bool FileExists(string name)
 {
     UninterruptableMonitor.Enter(this);
     try
     {
         return(cache.FileExists(name) || @delegate.FileExists(name));
     }
     finally
     {
         UninterruptableMonitor.Exit(this);
     }
 }