by Jonathan Bright | Nov 11, 2026 | Tutorials
Use Path.Combine when a later rooted segment should replace the earlier path. Use Path.Join when you want to concatenate path segments without that reset. Both return strings; neither proves that the result names an existing file. Microsoft documents this distinction...
by Jonathan Bright | Nov 11, 2026 | Tutorials
The text 1,234 can mean 1234, mean 1.234, or fail to parse. The outcome depends on both the permitted syntax and the provider that interprets the punctuation. The three providers below produce two distinct numbers, not three. This tutorial compares fifteen strings...
by Jonathan Bright | Nov 11, 2026 | Tutorials
Two callers can agree on a method signature and still disagree about its meaning. A metric consumer expects GetDistance() to return meters; an imperial consumer expects feet. One Runway can satisfy both contracts by implementing each member explicitly. This tutorial...
by Jonathan Bright | Nov 11, 2026 | Tutorials
A shipping rule can match an order’s destination and membership tier yet still fail its weight allowance. A when guard lets that order continue to the ordinary price bands. This tutorial builds one switch expression over weight, zone and tier, then checks nine...
by Jonathan Bright | Nov 11, 2026 | Tutorials
An architecture decision record (ADR) explains why a service uses a particular design and when that choice should be revisited. For a C# service, connect one decision to a small executable check: state the contract, record the alternatives, and retain evidence that...