src/packages/EmbedIO/Files/FileModuleExtensions.cs
/// <summary>
/// Sets a module's <see cref="FileModule.DirectoryLister">DirectoryLister</see> property
/// to <see langword="null"/>, disabling the generation of directory listings.
/// </summary>
/// <typeparam name="TModule">The type of the module on which this method is called.</typeparam>
/// <param name="this">The module on which this method is called.</param>
/// <returns><paramref name="this"/> with its <see cref="FileModule.DirectoryLister">DirectoryLister</see> property
/// set to <see langword="null"/>.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">The configuration of <paramref name="this"/> is locked.</exception>
/// <seealso cref="FileModule.DirectoryLister"/>
Sets a module's DirectoryLister, disabling the generation of directory listings.
Sets a module ' s DirectoryLister disabling the generation of directory listings .
public static TModule WithoutDirectoryLister<TModule>(this TModule @this)
            where TModule : FileModule
        {
            @this.DirectoryLister = null;
            return @this;
        }
public static TModule WithoutDirectoryLister < TModule > ( this TModule @this ) where TModule : FileModule { @this . DirectoryLister = null ; return @this ; }
Sets a module's DirectoryLister, disabling the generation of directory listings.
Sets a module ' s DirectoryLister disabling the generation of directory listings .
with its DirectoryLister.
with its DirectoryLister .
None
The configuration of  is locked.
The configuration of is locked .
TModule
this
<not_specific>
this
<not_specific>
The module on which this method is called.
The module on which this method is called .
typeparam
The type of the module on which this method is called.
The type of the module on which this method is called .
seealso
None