Skip to content

Result.Combine question #424

@macpak

Description

@macpak

Hi,

Is there a way to use Combine in such a way that a result of Combine contains valueses of two/more results passed into Combine ?
Imagine the code below

Result<string> result1 = GetName();
Result<int> result2 = GetAge();
Result.Combine(result1, result2).Bind(nameAndAge => ...)

Can I somehow use Result.Combine so that nameAndAge contains valueses of result1 and result2 (as a tuple, anonymous type, etc.) ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions