Exemplo n.º 1
0
 /// <summary>
 /// Returns an disposable version of this directory.
 /// </summary>
 /// <exception cref="System.IO.IOException">When the directory is not empty.</exception>
 /// <returns></returns>
 public static IDisposableDirectory AsDisposable(this IReopenableDirectoryBase <IDisposableDirectory> @this)
 => @this.ReopenAs();
Exemplo n.º 2
0
 /// <summary>
 /// Returns an undeletable version of this directory
 /// </summary>
 /// <returns></returns>
 public static IReadOnlyDirectory AsReadOnly(this IReopenableDirectoryBase <IReadOnlyDirectory> @this)
 => @this.ReopenAs();
Exemplo n.º 3
0
 /// <summary>
 /// Returns a version of this directory that can have files moved into it.
 /// </summary>
 /// <returns></returns>
 public static IMoveFromableDirectory AsMoveFromable(this IReopenableDirectoryBase <IMoveFromableDirectory> @this) =>
 @this.ReopenAs();
Exemplo n.º 4
0
 /// <summary>
 /// Returns an undeletable version of this directory
 /// </summary>
 /// <returns></returns>
 public static IDirectory AsIndelible(this IReopenableDirectoryBase <IDirectory> @this)
 => @this.ReopenAs();