コード例 #1
0
 void ThrowIfContainerNotFound()
 {
     if (!_file.Directory.Exists)
     {
         throw StreamingErrors.ContainerNotFound(this);
     }
 }
コード例 #2
0
 void ThrowIfContainerNotFound()
 {
     if (!Exists())
     {
         throw StreamingErrors.ContainerNotFound(this);
     }
 }
コード例 #3
0
 public IEnumerable <string> ListItems()
 {
     try
     {
         return(_root.GetFiles().Select(f => f.Name).ToArray());
     }
     catch (DirectoryNotFoundException e)
     {
         throw StreamingErrors.ContainerNotFound(this, e);
     }
 }