public override long FileLength(System.String name) { EnsureOpen(); RAMFile file; lock (this) { file = fileMap[name]; } if (file == null) throw new System.IO.FileNotFoundException(name); return file.Length; }
public override long FileLength(string name) { lock (this) { if (Cache.FileExists(name)) { return(Cache.FileLength(name)); } else { return(@delegate.FileLength(name)); } } }