Handle failure like it's data.
Because it is.
QuickResult is a lightweight Result<T> type for C#: the Result pattern with
full LINQ query syntax for sync, async, and mixed flows. Zero dependencies.
.NET 10+ and .NET Standard 2.0.
dotnet add package QuickResultOne query. Sync and async. No ceremony.
Most Result libraries make you choose between synchronous and asynchronous composition.
QuickResult lets you mix both in a single LINQ query and await it once at the end —
the first failure short-circuits everything after it.
var order =
from customer in FindCustomer(id) // Result<Customer>
from credit in CheckCreditAsync(customer) // Task<Result<Credit>>
from total in PriceCart(cart) // Result<decimal>
from ok in Result.Success(credit.Limit >= total)
.FailIfFalse("Insufficient credit")
select PlaceOrder(customer, cart, total);
var receipt = await order.MatchAsync(
onSuccess: r => $"Order {r.Id} confirmed",
onFailure: e => $"Order declined: {e.Message}");
Why QuickResult
Full LINQ query syntax
from/select over Results — including queries that mix
synchronous and asynchronous steps seamlessly.
Zero dependencies, MIT licensed
One small assembly, nothing else along for the ride — audit it in an afternoon. Free for commercial use, with source on GitHub and symbols published.
Errors are values
Implement IError to carry structured domain errors and recover them with
ordinary C# pattern matching.
A real C# union
On .NET 10+, Result<T> is a C# union of T and
IError: switch on it by type with C# 15 and the compiler
checks you handled both cases. How it works →
Exception & null boundaries
Try, TryAsync, FromNullable, and WhenNull
convert throwing and nullable APIs into honest Results at the edge.
Guards built in
FailIfTrue / FailIfFalse keep validation rules inside the same
composable flow as everything else.
Try it right now
This example is live — edit the inputs and run it against the real package:
Mixed sync + async in one query
QuickResult's signature feature: synchronous and asynchronous steps mix freely in a single LINQ query. No Task.Result, no ceremony — await the query once at the end.
static Task<Result<int>> FetchAsync(string text) =>
Task.FromResult(Result.Try(() => int.Parse(text)));
var query =
from a in Result.Try(() => int.Parse(first)) // sync
from b in FetchAsync(second) // async
from c in Result.Try(() => int.Parse(third)) // sync again
select a + b + c;
Console.WriteLine(await query);