Replies: 1 comment 1 reply
-
If you need to search among all values in a provider for a key, then I don't think there's a cache-friendly way to achieve it. You'll have to Combine and then pull back out via SelectMany. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, there is
IncrementalValueProviderExtensions.Combine
that combines either twoIncrementalValueProvider
s or oneIncrementalValuesProvider
with oneIncrementalValueProvider
. I need to zip twoIncrementalValuesProvider
s into a new one by a key.My use case:
I need to generate a partial class from two sources:
Result:
The partial class is generated if either the user-provided interface or the user-provided partial class is present, or both.
The "zipping" key in my case is the name of the generated partial class.
Question:
How to currently achieve this (in a least cache-unfriendly way)?
Beta Was this translation helpful? Give feedback.
All reactions