record: practical reference
record: practical reference: record generates value equality, printing, and support for with; only a positional record synthesizes Deconstruct automatically.
CKTIS / C#
Programming syntax, operators and concepts. Find an explanation, explore an example and return to learning.
record: practical reference: record generates value equality, printing, and support for with; only a positional record synthesizes Deconstruct automatically.
ref: practical reference: ref passes or returns an alias to an existing storage location instead of a copy.
remove: practical reference: remove defines an event unsubscription accessor and receives the handler as value.
required: practical reference: required demands that a member be set by an object initializer or a SetsRequiredMembers constructor.
return: practical reference: return ends a function and can pass a result to its caller.
scoped: practical reference: scoped prevents a ref or span from escaping the safe lifetime of a call.
sealed: practical reference: sealed prevents inheritance of a class or any further override of a member.
select: practical reference: select defines the final or an intermediate projection of a query expression.
set: practical reference: set writes a property or indexer and exposes the assigned value as value.
stackalloc: practical reference: stackalloc reserves a contiguous buffer in the current stack frame, usually as Span<T>.
static: practical reference: static binds a member to its type or prevents a local function from capturing state.
struct: practical reference: struct declares a value type that is copied by value by default.
switch: practical reference: switch selects the first matching case or pattern arm.
this: practical reference: this refers to the current instance or chains construction to another constructor.
throw: practical reference: throw raises an exception; a bare throw in catch rethrows it while preserving its stack.
true: practical reference: true is the bool literal that denotes truth.
try: practical reference: try delimits code whose exceptions are handled by catch and whose cleanup runs in finally.
unchecked: practical reference: unchecked disables overflow checking for the enclosed integral arithmetic and conversions.
unmanaged: practical reference: The unmanaged constraint admits value types without managed references; the keyword also describes a function-pointer ABI.
unsafe: practical reference: unsafe permits pointers and operations outside full CLR memory protection.
using: practical reference: using imports a namespace or alias, or deterministically disposes an IDisposable.
value: practical reference: value denotes the assigned value or handler inside set, init, add, and remove accessors.
var: practical reference: var asks the compiler to infer a local variable's static type from its initializer.
virtual: practical reference: virtual allows a derived class to replace behavior through override.