We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods to be added in the Result class to perform the conversion from Result to:
Result
public Result<T> ToResult<T>(T data); public ListedResult<T> ToListedResult<T>(IEnumerable<T> data); public PagedResult<T> ToPagedResult<T>(IEnumerable<T> data, PagedInfo pagedInfo);
These methods can go in a file named Result.Conversions.cs. Note: Implicit operators can call these methods.
Result.Conversions.cs
var person = new Person { Name = "Bob" }; Result invalidResult = Result.Invalid(); Result<Person> result = invalidResult.ToResult(person);
PD: These methods have been added.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Methods to be added in the
Result
class to perform the conversion fromResult
to:These methods can go in a file named
Result.Conversions.cs
.Note: Implicit operators can call these methods.
Usage
PD: These methods have been added.
The text was updated successfully, but these errors were encountered: