Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​IO.​Enumeration.​FileSystemEnumerator`1
Assembly: System.Runtime
Inheritance: object → Runtime.ConstrainedExecution.CriticalFinalizerObject → FileSystemEnumerator`1
Enumerates the file system elements of the provided type that are being searched and filtered by a <see cref="T:System.IO.Enumeration.FileSystemEnumerable`1" /> .
Properties
public
TResult
Current
Gets the currently visited element.
Methods
protected
bool
ContinueOnError​(int error)
error
The native error code.
Returns <see langword="true" /> to continue; <see langword="false" /> to throw the default exception for the given error.
When overriden in a derived class, returns a value that indicates whether to continue execution or throw the default exception.
public
void
Dispose​()
Releases the resources used by the current instance of the <see cref="T:System.IO.Enumeration.FileSystemEnumerator`1" /> class.
protected
void
Dispose​(bool disposing)
disposing
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.
When overridden in a derived class, releases the unmanaged resources used by the <see cref="T:System.IO.Enumeration.FileSystemEnumerator`1" /> class and optionally releases the managed resources.
public
bool
MoveNext​() Returns <see langword="true" /> if the enumerator successfully advanced to the next item; <see langword="false" /> if the end of the enumerator has been passed.
Advances the enumerator to the next item of the <see cref="T:System.IO.Enumeration.FileSystemEnumerator`1" /> .
public
void
Reset​()
Always throws <see cref="T:System.NotSupportedException" /> .
Releases all the resources used by the <see cref="T:System.Runtime.ConstrainedExecution.CriticalFinalizerObject" /> class.
public
bool
Equals​(object obj)
Inherited from object
obj
The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
public
int
GetHashCode​()
Inherited from object
Returns A hash code for the current object.
Serves as the default hash function.
public
Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .
public
string
ToString​()
Inherited from object
Returns A string that represents the current object.
Returns a string that represents the current object.