FileExists() public method

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