Table of Contents

Struct FileSystem.DirectoryEnumerable

Namespace
Sdl3Sharp.IO
Assembly
Sdl3Sharp.dll

Represents an enumerable collection of file system entries for a specified directory path

public readonly struct FileSystem.DirectoryEnumerable : IEnumerable<string>, IEnumerable
Implements
Inherited Members

Constructors

DirectoryEnumerable(string)

Represents an enumerable collection of file system entries for a specified directory path

public DirectoryEnumerable(string path)

Parameters

path string

The path to the directory to enumerate

Exceptions

ArgumentException

path is null, empty, or consists exclusively of white-space characters

Methods

GetEnumerator()

Gets an enumerator that enumerates through the file system entries for this FileSystem.DirectoryEnumerable

public FileSystem.DirectoryEnumerable.Enumerator GetEnumerator()

Returns

FileSystem.DirectoryEnumerable.Enumerator

An FileSystem.DirectoryEnumerable.Enumerator that can be used to enumerate the file system entries for this FileSystem.DirectoryEnumerable

Exceptions

SdlException

Couldn't create an FileSystem.DirectoryEnumerable.Enumerator for this FileSystem.DirectoryEnumerable (check TryGet(out string?) for more information)