Sandlada.RopSharp
0.0.2
dotnet add package Sandlada.RopSharp --version 0.0.2
NuGet\Install-Package Sandlada.RopSharp -Version 0.0.2
<PackageReference Include="Sandlada.RopSharp" Version="0.0.2" />
<PackageVersion Include="Sandlada.RopSharp" Version="0.0.2" />
<PackageReference Include="Sandlada.RopSharp" />
paket add Sandlada.RopSharp --version 0.0.2
#r "nuget: Sandlada.RopSharp, 0.0.2"
#:package Sandlada.RopSharp@0.0.2
#addin nuget:?package=Sandlada.RopSharp&version=0.0.2
#tool nuget:?package=Sandlada.RopSharp&version=0.0.2
Sandlada.RopSharp
Production-grade railway-oriented programming (ROP) for modern C#.
Sandlada.RopSharp gives you immutable structs — Result<TOk, TErr>, Option<T> and Either<TLeft, TRight> —
together with a structured RopError, applicative validation, parsing helpers, and cancellation-aware async
combinators. Expected failures are values, never exceptions. The public surface is fully symmetric, has no
aliases, performs no reflection, and is AOT/trim friendly.
using Sandlada.RopSharp;
// An order is priced, charged and finally shipped. Every failure is a value.
Result<string, RopError> receipt =
Result.Try(() => Charge(order), "E_CHARGE")
.BindOk(payment => Result.Ok(payment.Id))
.Ensure(id => id.Length > 0, RopError.Create("E_RECEIPT", "the receipt id is empty"))
.TeeOk(id => Log(id))
.MapErr(e => e.WithCode("E_PAYMENT"));
string text = receipt.Match(
ok: id => $"receipt {id}",
err: e => $"fail {e.Code}: {e.Message}");
- Targets:
net10.0andnet11.0only. - Package:
Sandlada.RopSharp(MIT). - Dependencies: none.
- Entry points:
Resultbuilds aResult<TOk, TErr>,Optionbuilds anOption<T>(ADR 0012).
The order fulfillment storyline
Every example in this repository — in the README, in the XML documentation of the library and in the Traditional Chinese guide — is drawn from one small domain, so a reader keeps watching the same program grow instead of a series of unrelated fragments:
| Type | Role |
|---|---|
Customer |
The buyer. The shipping address is optional, so the absence path can be shown. |
Address |
A postal address. |
Order |
The order to fulfill, with its lines. Total and ItemCount are derived. |
OrderLine |
One ordered line, with a derived Amount. |
Payment |
A payment attempt against an order. |
PaymentStatus |
The lifecycle state of a payment. |
Shipment |
A parcel handed over to a carrier. |
The types live in
Sandlada.RopSharp.Tests/DocExamples/DocExampleDomain.cs
and are compiled into the test assembly. OrderFixtures stands in for the external systems: Charge throws for a
declined order, so a boundary built on top of it shows both tracks deterministically.
Install
dotnet add package Sandlada.RopSharp
Three types, three questions
| Question | Type | Success | Absence/failure |
|---|---|---|---|
| "Did it fail, and why?" | Result<TOk, TErr> |
Ok(value) |
Err(error) |
| "Is there a value?" | Option<T> |
Some(value) |
None |
| "Which of two ordinary values?" | Either<TLeft, TRight> |
Left(left) |
Right(right) |
Option never carries a reason. When the reason matters, cross over explicitly with RequireSome.
When both branches are ordinary values (not success/failure), use Either<TLeft,TRight> instead of forcing a
result convention:
Result<Address, RopError> address =
Option.FromNullable(order.Customer.Address)
.BindSome(shipping => Option.Some(shipping))
.RequireSome(() => RopError.Create("E_ADDRESS", "the customer has no shipping address"));
Result quick start
// Construction (production default: Err = RopError)
Result<int, RopError> ok = Result.Ok(42);
Result<int, RopError> err = Result.Err<int>(RopError.Create("E_X", "bad"));
// Custom error types are allowed (tests, interop), RopError is recommended in production
Result<int, string> custom = Result.Ok<int, string>(42);
// Non-throwing branch queries
if (result.TryGetOk(out var value)) { /* ... */ }
if (result.TryGetErr(out var error)) { /* ... */ }
// The only full exit
string text = result.Match(ok: v => v.ToString(), err: e => e.Code);
// Lightweight exits (explicit defaults only)
int fallback = result.BindErrValue(0);
int lazy = result.BindErrValue(() => ComputeDefault());
Expect(string reason) on Result and Option is for tests and boundaries only; the reason is required when unwrapping.
Option quick start
Option<Address> some = Option.Some(order.Customer.Address!);
Option<Address> none = Option.None<Address>();
Address? maybeAddress = null;
Option<Address> lifted = Option.FromNullable(maybeAddress); // reference types
Option<int> count = Option.FromNullableValue(maybeItemCount); // Nullable<T>
string city = some.Match(some: a => a.City, none: () => "unknown");
// default(Option<T>) is contractually None — safe in arrays, fields and generic containers
Option<Order>[] slots = new Option<Order>[3]; // all None
Mental model
| Concept | Member |
|---|---|
| Success-track transform | MapOk / MapSome |
| Error-track transform | MapErr (no MapNone: a missing value has nothing to map) |
| Success-track expansion | BindOk / BindSome |
| Failure-track recovery | BindErr / BindNone |
| Failure-track recovery with value | BindErrValue / BindNoneValue |
| Observation without changing track | TeeOk / TeeErr / TeeSome / TeeNone |
| Assertion | Ensure (Result) / Filter (Option) |
| Value replacement | MapOkValue / MapSomeValue |
| Full exit | Match / MatchFirst |
| Action exit | Switch / SwitchAsync / SwitchFirst |
| Non-throwing probe | TryGetOk / TryGetErr / TryGetValue |
| Short-circuit combination | Result.Combine, Result.Zip, Result.Sequence, Result.Traverse |
| Aggregating combination | Result.Validate, Result.SequenceValidation, Result.TraverseValidation |
| Explicit model conversion | ToValidation / ToSingleError / RequireSome / ToOption / ToEither / Transpose |
Every combinator is data-last (mapper/binder/predicate/action last), so chains read left to right.
Model bridging
Crossing between the three models is always explicit, and every bridge names which side becomes which:
Either<RopError, Payment> fromResult = Result.Ok(payment).ToEither(); // Ok -> Right, Err -> Left
Result<Payment, RopError> back = fromResult.ToResult(error => error); // Left -> Err, Right -> Ok
Either<string, Payment> fromOption = Option.None<Payment>().ToEither("missing"); // None -> Left, Some -> Right
Option<Payment> present = Either.Right<string, Payment>(payment).ToOption(); // Left is discarded
ToOption on Result and Either deliberately drops the reason; use RequireSome or ToResult when it must
survive the crossing.
Error model
RopError is immutable and structured:
RopError error = RopError.Create(
code: "E_ORDER_NOT_FOUND", // stable, machine-readable, safe to switch on
message: "order 42 does not exist", // human-readable, display only
details: "id=42"); // optional machine/diagnostic payload
RopError fromBoundary = RopError.FromException(exception, "E_IO"); // Cause is captured here only
RopError retagged = error.WithCode("E_ORDER_404");
RopError aggregate = RopError.Combine([notFound, outOfStock]);
IReadOnlyList<RopError> leaves = aggregate.InnerErrors; // the originals, in supplied order
CodeandMessagemust be non-blank; blank input is a programming error (ArgumentException).Detailsmay benullbut must not be blank.Kindis a coarse category (Failure,Validation,NotFound,Conflict,Unauthorized,Forbidden,Unexpected,Timeout,Unavailable,RateLimited) for transport/presentation mapping; branch onCodefor precise domain decisions. New values are appended, so treat the enum as open-ended.InnerErrorsis nevernull: atomic errors expose an empty list, while aCombineaggregate keeps every input in order (no flattening) so nothing is lost by collapsing.WithCodeand the otherWith*methods preserve it.- Equality compares
Kind,Code,Message,Details, and recursivelyInnerErrors(cycle-safe); onlyCauseis excluded so stack-trace noise cannot make two equally reported errors unequal. RopError.Combine(errors)collapses a non-empty list intoE_MULTIPLE; a uniformKindis preserved and mixed kinds fall back toFailure. A single-element call returns that error unchanged instead of wrapping it.
Recommended code convention: E_<DOMAIN>[_<REASON>], uppercase with underscores.
Custom error types
Result<TOk, TErr> is generic; RopError is the recommended default, not a constraint. Every combinator,
aggregation helper and LINQ operator already works with any TErr. The convenience and boundary helpers have
TErr overloads so a domain error type can be used end to end:
public sealed record AppError(string Code, string Message);
Result<decimal, AppError> parsed =
Result.Parse<decimal, AppError>(raw, failure => new AppError(failure.Code, failure.Message));
Result<Order, AppError> loaded =
Result.Try(() => LoadOrder(id),
ex => new AppError("E_IO", ex.Message),
() => new AppError("E_NULL", "the loader returned null"));
- The
RopErroroverloads remain the default and keep theirE_NULL_RESULT/(func, code)behavior. Try/TryAsync/TrySwitch/TrySwitchAsyncrequire an explicit null-result factory for value-producing boundaries, because the library cannot synthesize an arbitrary error. Action boundaries do not need one.Parsepasses aParseFailure(Code/Message/Input/TypeName/Details) to the factory, so the bounded, escaped diagnostics survive.ToSingleError()takes the first error; useToSingleError(combine)for a custom collapse.
Caveats: Result.Err rejects null error values; default(Result<,>) is undefined; Result equality delegates
to EqualityComparer<TErr>.Default (records and structs compare by value, plain classes by reference); TErr
is inlined in the struct, so prefer a reference type or a small struct. A custom error type also gives up
Code/Kind/InnerErrors; model what you need on the type itself.
Short-circuit vs aggregating
The two models are deliberately separate and never mix implicitly:
// Short-circuit: first error wins, later functions are not executed
Result<Order, RopError> order =
Result.Ok(raw)
.BindOk(CheckCustomer) // stops here on failure
.BindOk(CheckAmount);
// Aggregating: every input is inspected, all errors are collected in argument order
Validation<Order, RopError> validated =
Validation.Zip(
CheckCustomer(raw), CheckAmount(raw), CheckStock(raw),
(customer, amount, stock) => new Order("ord-1001", customer, stock));
// Collapse back to a single Result
Result<Order, RopError> merged = validated.Collapse(RopError.Combine);
Sequence, Traverse and Partition accept any IEnumerable<T> but materialize exactly once. Empty input
yields Ok([]) (or Some([]) for options), never null. Validation.Sequence and Validation.Traverse share
those collection rules but aggregate: every element is mapped and every error is collected in element order.
Async and cancellation
Asynchronous computations use specialized computation types — ResultTask<TOk, TErr>, OptionTask<T>, and
ValidationTask<T, TErr> — rather than loose extension methods on Task<Result<,>>. The token is optional and always
last; cancellation is reported as OperationCanceledException and never converted into an error, because errors
describe domain failures.
ResultTask<string, RopError> chained =
ChargeAsync(order, ct)
.ToResultTask()
.MapOkAsync((payment, token) => FetchReceiptAsync(payment, token), ct)
.BindOkAsync((id, token) => GetShipmentAsync(id, token), ct);
Semantics:
- Cancelled token + pending antecedent → the returned task is cancelled, the callback is not invoked.
- The track that would invoke a callback checks the token first, so a cancelled token never starts new user work
(
OkforMapOk/BindOk/TeeOk,ErrforMapErr/BindErr/TeeErr, and the matchingSome/Nonetrack). - The pass-through track (no callback to run) returns the original value without observing the token.
SequenceandTraversecheck the token before the loop and before every element, so an already-completed task cannot bypass cancellation andTraversenever maps after cancellation.- Library code always uses
ConfigureAwait(false). - A callback that returns a task-like object must not return
null; that programming error faults withInvalidOperationExceptionnaming the callback.
ResultTask.Sequence and ResultTask.Traverse await in enumeration order and short-circuit on the first failure.
The aggregating traversal helpers keep their no-short-circuit contract on the async track:
ValidationTask.Sequence and ValidationTask.Traverse await every task and collect every error in source order.
Validation<IReadOnlyList<OrderLine>, RopError> validated =
Validation.Traverse(order.Lines, ValidateLine);
Validation<IReadOnlyList<OrderLine>, RopError> asyncValidated = await ValidationTask.Traverse(
order.Lines,
(line, _) => ValidateLineAsync(line));
Option mirrors the synchronous surface; async option work uses OptionTask<T> (From, WithCancellation,
MapSomeAsync, aggregation, and LINQ on the computation type):
Option<string> city = await OptionTask.From(GetAddressAsync(customer.Id))
.WithCancellation(ct)
.MapSomeAsync((address, _) => Task.FromResult(address.City))
.FilterAsync((value, _) => Task.FromResult(value.Length > 0));
Boundaries
Exceptions become domain values in exactly one place:
Result<decimal, RopError> parsed = Result.Try(() => decimal.Parse(text), ex => RopError.FromException(ex, "E_PARSE"));
Result<decimal, RopError> byCode = Result.Try(() => decimal.Parse(text), code: "E_PARSE");
// Side-effecting boundaries keep the result composable via Unit
Result<Unit, RopError> saved = Result.Try(() => repository.Save(order), ex => RopError.FromException(ex, "E_SAVE"));
Task<Result<Unit, RopError>> sent = Result.TryAsync(() => gateway.SendAsync(order, ct), "E_SEND", ct);
Result<Address, RopError> required = Result.FromNullable(customer.Address, () => RopError.Create("E_ADDRESS", "the customer has no shipping address"));
Result<int, RopError> requiredCount = Result.FromNullableValue(maybeItemCount, () => RopError.Create("E_COUNT", "the order has no item count"));
OperationCanceledExceptionis always rethrown, never converted.- A boundary function returning
nullyieldsErrwith codeE_NULL_RESULT— anOk(null)is never produced byTry. Result.Switch/Result.TrySwitchlift a plain function without and with exception conversion;Result.SwitchAsync/Result.TrySwitchAsyncare the awaited counterparts. They adapt a function, they do not consume an existing result (that isSwitch/SwitchAsynconResult).Result.Try(Action, ...)andResult.TryAsync(Func<Task>, ...)cover boundaries with no payload; they returnResult<Unit, RopError>so the outcome still flows through the normal combinators.- Do not pass a
Task-returning lambda to the synchronousResult.Try<T>: theTaskwould become the success payload. UseResult.TryAsyncfor asynchronous work.
Parsing
Result.Parse<T> and Result.TryParse<T> use the invariant culture and the static abstract IParsable<T> contract.
A parse failure echoes the offending input in the message and in Details as input=<quoted>, so the error is
self-describing without logging the raw payload separately.
Result<decimal, RopError> amount = Result.Parse<decimal>(raw, "E_AMOUNT");
// Err: Code=E_AMOUNT, Message='19,50' is not a valid Decimal., Details=input="19,50"
The echo is bounded to 64 characters, truncates on a code-point boundary, and escapes quotes, backslashes and
control characters. null renders as the literal null instead of an empty pair of quotes, so "missing" and
"empty" stay distinguishable.
LINQ
// Result: select + from (no where — there is no error value to produce for a predicate)
var total = from customer in GetCustomer(id)
from order in GetOrder(customer.Id)
select order.Total;
// Option: select + from + where (where is just Filter)
var total = from address in Option.FromNullable(customer.Address)
from line in Option.Some(order.Lines[0])
where line.Quantity > 0
select line.Amount;
Nullability rules
Result.Ok(null),Result.Err(null),Option.Some(null)throwArgumentNullException(input guards, programming errors).- A mapper is allowed to produce a nullable success payload:
Result<string?, RopError>. Enforce non-nullness withRequireNotNull; useOptionwhen absence is expected. Option<T>never containsnull; map nullable results withBindSomeNullable/BindSomeNullableValue.ToNullableis the only place the library hands outnullfor reference types; cross back withOption.FromNullableat the consuming boundary.- Collection helpers treat
nullas a programming error:TryFirst,TryLast,TryFindand the projectingChoosethrowArgumentNullExceptionwhen the element, stored value or mapped value isnull, instead of producingSome(null)or a null list entry. Filter the sequence or lift withOption.FromNullablefirst.
Result<Address, RopError> address =
GetOrder(id)
.MapOk(o => o.Customer.Address) // Address?
.RequireNotNull(() => RopError.Create("E_ADDRESS", "the customer has no shipping address"));
Design rules
- Symmetry over brevity.
MapOk/MapErr,BindOk/BindErr,TeeOk/TeeErr. There is noMap,BindorTeeshorthand; aliases are rejected by design. - Two static entry points.
Result(results and boundaries) andOption(options). Receiver-based operations are extension methods only. - No implicit conversions and no operators.
T → Result,T → Option,Result → T,Result → bool,Deconstructand|/>>are all rejected: they hide the track. - No null on the public surface. Aggregations return empty collections, never
null. - No reflection on hot paths, no boxing of the core types.
default(Option<T>)isNone;default(Result<,>),default(Either<,>),default(Validation<,>), anddefault(ParseFailure)are uninitialized — they throwInvalidOperationExceptionon access.
Scope decisions
Three larger topics are deliberately caller-owned (ADR 0010):
- Arity stops at three.
Combine/Zipcover 2 and 3 inputs; larger aggregations use a record, a collection withSequence/Traverse(orValidation.Sequence/Validation.Traverse), or nested calls. - Concurrency policy stays at the call site. The async helpers are sequential or await-all; for bounded fan-out
compose
Task.WhenAll/Parallel.ForEachAsyncat the boundary. The library never throttles or creates a token source. IAsyncEnumerable<T>is composed, not wrapped. Materialize withawait foreachand pass the results toResultTask.Sequence(orOptionTask.Sequence/ValidationTask.Sequence).
Roslyn Contract Analyzers
Sandlada.RopSharp ships Roslyn contract analyzers (ROP0001–ROP0004; ADR 0014) directly inside the NuGet package
to enforce railway invariants at compile time:
ROP0001(Error): Prevents creatingResult,Either,Validation,ParseFailure, and async computation types viadefaultor empty constructors.ROP0002(Error): Disallows discarding contract values or leaving them as bare expression statements.ROP0003(Error): Flags synchronous combinators receiving delegates or block-bodied lambdas returning task-like types (Task,ValueTask).ROP0004(Warning): Enforces stable error codes matching^E_[A-Z0-9_]+$acrossRopError.Create,FromException,WithCode,Result.Try*,Parse, andnew ParseFailure.
API map
Result (sync)
Result.Ok<T>(value) Result.Err<T>(error)
Result.Ok<TOk,TErr>(value) Result.Err<TOk,TErr>(error)
TryGetOk / TryGetErr / IsOk / IsErr
MapOk / MapErr / TeeOk / TeeErr
Ensure(predicate, error) / Ensure(predicate, errorFactory)
MapOkValue / RequireNotNull
BindOk / BindErr / BindErrValue(value|factory)
Match(ok, err) / Expect(reason)
Result (aggregation and boundaries)
Result.Combine(a, b, merger) Result.Combine(a, b, c, merger)
Result.Zip(a, b) Result.Zip(a, b, c)
Result.Sequence(results) Result.Traverse(source, mapper)
Result.Partition(results)
Result.Try(func, errorFactory) / Result.Try(func, code)
Result.Try(action, errorFactory) / Result.Try(action, code) -> Result<Unit, RopError>
Result.TryAsync(func, errorFactory, ct) / Result.TryAsync(func, code, ct) -> ResultTask<T, RopError>
Result.TryAsync(action, errorFactory, ct) / Result.TryAsync(action, code, ct) -> ResultTask<Unit, RopError>
Result.Switch(func) / Result.TrySwitch(func, errorFactory)
Result.SwitchAsync(func) / Result.TrySwitchAsync(func, errorFactory)
Result.FromNullable(value, errorFactory) / Result.FromNullableValue(value, errorFactory)
Select / SelectMany
Validation (accumulating — Validation<T, TErr> & ValidationTask<T, TErr>)
Validation.Success / Validation.Failure / Validation.From
Validation.Zip (2, 3) / Validation.Sequence / Validation.Traverse
Validation.Collapse(merge) / Match / Switch / MatchFirst / SwitchFirst
ValidationTask.From / ValidationTask.Zip / ValidationTask.Sequence / ValidationTask.Traverse
ToValidationTask / MapAsync
Result (async — ResultTask<TOk, TErr>)
ResultTask.From(Result | Task<Result>) / ToResultTask
WithCancellation
MapOk / MapOkAsync / BindOk / BindOkAsync
MapErr / MapErrAsync / BindErr / BindErrAsync / TeeOk / TeeErr (+ async)
ResultTask.Zip / Sequence / Traverse / Partition
Select / SelectMany on ResultTask (async LINQ)
Result.TryAsync / SwitchAsync / TrySwitchAsync → ResultTask
Option (async — OptionTask<T>)
OptionTask.From(Option | Task<Option>) / ToOptionTask / WithCancellation
MapSome / MapSomeAsync / BindSome / BindSomeAsync / BindNone / BindNoneAsync / BindNoneValue / Filter (+ async)
OptionTask.Zip / Sequence / Traverse
Select / SelectMany / Where on OptionTask (async LINQ)
Option
Option.Some / Option.None / Option.FromNullable / Option.FromNullableValue / Option.When
Option.Combine (2, 3) / Option.Zip (2, 3) / Option.Sequence / Option.Traverse / Option.Values
OptionTask.Zip / Sequence / Traverse (see Option async above)
MapSome / TeeSome / TeeNone / Filter / MapSomeValue
BindSome / BindSomeNullable / BindSomeNullableValue / BindNone / BindNoneValue
Flatten / Match / Expect(reason)
RequireSome(error|factory) / ToOption / ToEither(value|factory) / ToNullable / ToNullableValue / Transpose
MapSomeAsync / BindSomeAsync / BindNoneAsync / TeeSomeAsync / TeeNoneAsync / FilterAsync
Select / SelectMany / Where (Option and OptionTask)
Collection, terminals, parsing and the general union
TryFirst / TryLast / TryFind / Choose / Execute / ExecuteNoValue (OptionEnumerableExtensions)
SuccessIf / FailureIf (value | factory) (Result)
Result.Parse<T> / Result.TryParse<T> (invariant culture, IParsable<T>)
Either.Left / Either.Right / Match / MapLeft / MapRight / Swap / ToResult / ToOption
Result<,>.ToEither / Option<>.ToEither (value | factory)
Custom error types
Every entry below keeps an identical RopError overload; the TErr form is additive.
FromNullable<TOk,TErr>(value, errorFactory) FromNullableValue<TOk,TErr>(value, errorFactory)
SuccessIf<T,TErr>(condition, value, error|factory) FailureIf<T,TErr>(condition, value, error|factory)
RequireNotNull<T,TErr>(errorFactory) Either.ToResult<TErr>(errorFactory)
Try<T,TErr>(func, errorFactory, nullResultErrorFactory)
Try<TErr>(action, errorFactory)
TryAsync<T,TErr>(func, errorFactory, nullResultErrorFactory, ct)
TryAsync<TErr>(action, errorFactory, ct)
TrySwitch<T,TOut,TErr>(func, errorFactory, nullResultErrorFactory)
TrySwitchAsync<T,TOut,TErr>(func, errorFactory, nullResultErrorFactory)
Parse<T,TErr>(value, Func<ParseFailure,TErr>, code = "E_PARSE")
Anti-patterns
try/catcharound a combinator chain — lift the boundary withResult.Tryinstead.- Using
Expectwithout a meaningful reason in production — exit withMatch,BindErrValueorTryGet*. - Using
nullto mean failure — useErr. - Using
Optionfor domain failure that carries a code/message — useResult. - Wrapping a collection in
Option— an empty collection is already empty. - Mixing
OptionandNullable<T>inside one public signature — convert once at the boundary. - Branching on
Message— branch onCode. - Using
Validation.Zipwhere a short-circuit is required — useBindOk. - Mutating external state in
Tee*and depending on its execution order — logging and metrics only.
Targets, performance, and compatibility
net10.0;net11.0,LangVersionlatest, nullable reference types enabled.IsAotCompatible, trim/AOT analyzers enabled; no reflection, no dynamic code.Result<,>andOption<>arereadonly structs with value equality; they are immutable and safe to share across threads. Combinators do not lock; user callbacks are the caller's responsibility.- Aggregations materialize once and expose
IReadOnlyList<T>backed by a read-only wrapper.
Implementation notes
The library started from an early draft specification. The still-valid decisions (including C#-specific
corrections such as the ...Value suffix for nullable value-type helpers) are recorded in
docs/adr/0001-core-design-decisions.md. API additions and the
rationale for capabilities that remain deliberately out of scope are recorded in
docs/adr/0002-api-gap-remediation.md. Option asynchronous parity is
recorded in docs/adr/0003-option-async-parity.md, validation traversal
in docs/adr/0004-validation-traversal.md, lossless error aggregation in
docs/adr/0005-lossless-error-aggregation.md, asynchronous
boundaries in docs/adr/0006-async-boundaries.md, diagnostics in
docs/adr/0007-diagnostics.md, model bridging in
docs/adr/0008-model-bridges.md, the null-element policy in
docs/adr/0009-null-elements.md, the concurrency/streaming scope in
docs/adr/0010-concurrency-and-streaming-scope.md, and
custom error types in docs/adr/0011-custom-error-types.md.
Repository layout
Sandlada.RopSharp/ library (net10.0; net11.0)
Sandlada.RopSharp.Tests/ TUnit suite (net10.0; net11.0)
Sandlada.RopSharp.Sample/ runnable multi-scenario tour (see its README)
Sandlada.RopSharp.Benchmarks/ BenchmarkDotNet baselines
docs/ ADRs, benchmarks and the Traditional Chinese guide
CONTRIBUTING.md / SECURITY.md contribution rules and vulnerability policy
Traditional Chinese guide: docs/zh-TW/getting-started.md.
Documentation-example rules (how the XML examples are written and kept compiling):
docs/doc-examples.md.
Benchmark baselines: docs/benchmarks.md.
Verification gates (including the trim-published run): docs/verification.md.
Contributing and security
- Contribution rules, design constraints and the public-API procedure: CONTRIBUTING.md.
- Vulnerability reporting: SECURITY.md (private advisory; please do not open a public issue).
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
See CHANGELOG.md for release notes and migration guidance.