dotnet / dotnet/dotnet-api-docs
Please document the history and use case of IEnumerable.Reset() (it seems unused?)
Open
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
Assessment
This issue has not been assessed yet.