On this page

Learning DirectSharp

Browse by feature below, or read the chapters in order. Section headings name the syntax first; examples show what it does.

The tour introduces an ordinary application action, business rules and source-level names. If you already know C# or VB.NET, the developer bridge gives you a focused route through naming, defaults, selectors, async intent and cleanup.

Chapter Features to look for
Values and operators let, readonly, lazy, default, nothing, ??, let_if
Conditions and loops if, select / case / take, for_each, range, while, repeat, named loops
Actions and callables action, returns, result, self, arguments, selectors, generics
Classes and class kinds class, constructor, property, data, interface, implements, class kind
Collections and text LINQ, List, Dictionary, Take / TryTake, interpolation, is like, is match, consume
Contracts and errors require, ensure, otherwise, try / catch, using, try_get
Async and concurrency await, task_of, concurrent all / first / any, run, Gate, cancellation
Services and events needs, services, provide, event, handles_event
Application design FluentValidation, contracts, constructor injection, failure boundaries
Advanced integration extension, attributes, description, feature, wrap, preprocessing

For connected code, follow the Customer showcase. For a specific task, browse the example cookbook. For edge cases and precise semantics, use the reference.

Practice as you read

After values and classes, try names, defaults and validation changes. After resources and concurrency, predict failure, cleanup and cancellation outcomes. The exercises include answers and links to the exact application boundary. Read the ordinary-code chapters before advanced integration; the feature adapter is an optional final step, not a prerequisite for application programming.