-
Hey folks, I'm wondering if anyone can provide an explanation for why this code might be returning a value of type IEnumerable<Option>? var date = (
from indexer in RecursiveRecordIndexer.Create("SWAPPRICINGDATA->RCVSIDEPRICINGDATA->PriceDate")
from parser in new RecursiveRecordContentParser().Create(indexer, DateFormat.yyyyMMdd)
from result in parse(parser, stringFileData).ToOption()
select result.Date
); I would've thought it would return just an Option? Is this something to do with how the |
Beta Was this translation helpful? Give feedback.
Answered by
louthy
Mar 12, 2025
Replies: 1 comment
-
Option derives from IEnumerable. Usually, if IEnumerable is picked, over the more concrete Option, it means one of the other types in the LINQ expression isn't returning Option. What does Create return? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rhemsuda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Option derives from IEnumerable. Usually, if IEnumerable is picked, over the more concrete Option, it means one of the other types in the LINQ expression isn't returning Option. What does Create return?