PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Utilities Namespace / Unknown­Object­Accessor.​Enumerator Structure / Enumerator Methods / Unknown­Object­Accessor.​Enumerator.​Reset Method

UnknownObjectAccessor.Enumerator.Reset Method

Sets the enumerator to its initial position, which is before the first element in the collection.

Namespace:  PostSharp.Patterns.Utilities
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public void Reset()

Implements

IEnumerator.Reset()
Exceptions
ExceptionCondition
InvalidOperationExceptionThe collection was modified after the enumerator was created.
See Also