You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error:
CS1936 Could not find an implementation of the query pattern for source type 'Result'. 'Select' not found.
I see the that SelectMany operation is supported but it looks like there is no select. Is this something that you would be open to me adding?
It would help with workflows like this
Result<string>GetGreetingMessage(stringuserName){varmaybeGreeting=fromnamein ValidateName(userName)// Bind the validated nameselect CreateGreetingMessage(name);// Map to a greeting message// Convert Maybe to Resultreturn maybeGreeting.ToResult("Invalid name provided");}Maybe<string>ValidateName(stringname){// Check if the name is valid, return Maybe.None if invalidreturnstring.IsNullOrWhiteSpace(name)?Maybe<string>.None :Maybe<string>.From(name);}
but for results.
The text was updated successfully, but these errors were encountered:
Is the Select method not supported for linq query syntax for result?
As an example here is code that works with
Maybe
But does not work with Result
This is the error:
CS1936 Could not find an implementation of the query pattern for source type 'Result'. 'Select' not found.
I see the that SelectMany operation is supported but it looks like there is no select. Is this something that you would be open to me adding?
It would help with workflows like this
but for results.
The text was updated successfully, but these errors were encountered: