dotnet / dotnet/dotnet-api-docs

Please document the history and use case of IEnumerable.Reset() (it seems unused?)

Open
#7,036 4 comments 1 reaction 0 assignees View on GitHub
area-System.Collections Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

See https://stackoverflow.com/a/11475401

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Collections/IEnumerator.xml / https://docs.microsoft.com/en-us/dotnet/api/system.collections.ienumerator.reset?view=net-5.0 seem to claim that the method should exist and be usable. But when I try to think of the use of this method, I can’t think of any.

A description of the intended use of the method, why it was even made (because object creation is expensive?), and when, if ever, it should be used or advise about how not to use it would be helpful and reduce confusion.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.