Make `await ListNamespacedServiceAsync` return enumerable
Currently, I have to
(await ListNamespacedServiceAsync(..)).Items.Where(..)
so I it would be nice
(await ListNamespacedServiceAsync(..)).Where(..)``
When I see List in method name, I always mistype Where as list kind of enumerable.
Thank you Sir
let me think if an extension method could make life simpler
Maybe we could consider the foreach extensions
- https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/extension-getenumerator
- http://dontcodetired.com/blog/post/ICYMI-C-9-New-Features-Adding-foreach-Support-To-Any-Type
thanks for the idea, the code generator would have to figure out the List result and add a ienumerator delegate to .item or a extension based enumerator
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue or PR as fresh with
/remove-lifecycle stale - Mark this issue or PR as rotten with
/lifecycle rotten - Close this issue or PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale