Enumerable.Range
to return a custom object with fast value enumerator
#58342
-
Enumerable.Range currently returns I suggest, instead, returning a value type, whose enumerator would also be a value type. Thanks to inlining it may almost reach the naive implementation of Thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Return type is part of a method's signature. Changing this would be a binary breaking change. |
Beta Was this translation helpful? Give feedback.
Return type is part of a method's signature. Changing this would be a binary breaking change.
https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/breaking-change-rules.md#signatures