liveBook · Manning

Reference type

A reference type is a type whose values provide indirect access to data or objects stored separately from those values.

How 2 Manning books explain it

.NET in Action, Second Edition

A reference type is a .NET type whose values identify objects or locations containing the type's data.

How it is used
Uses reference types to explain object storage, parameter and assignment behavior, boxing, and nullable-property design.
How deep it goes
Defines storage differences and applies nullable annotations and constructors, but defers detailed reference mechanics to a later section.
Examples
Demonstrates strings, integers passed to object parameters, and a Book whose Title is initialized or required by constructor.
What you can do after
Apply reference-type annotations and constructors to prevent unintended null values in C# object models.

Read how .NET in Action, Second Edition explains reference type →

F# in Action: A Revised Edition of Get Programming with F#

A reference type is a type whose values are references to objects stored separately from the reference itself.

How it is used
Frames heap-backed, reference-passing behavior when comparing ordinary F# data with struct-based value representations.
How deep it goes
Explains passing, heap storage, garbage collection, copying costs, and the syntax for selecting value types, without deeper runtime internals.
Examples
Uses System.Tuple, F# records, and [<Struct>] declarations to contrast reference and value representations.
What you can do after
Evaluate representation choices using allocation and copying trade-offs, then justify struct usage with performance evidence.

Read how F# in Action: A Revised Edition of Get Programming with F# explains reference type →

Also covered in

What to know first

Related concepts

Questions about reference type

What is reference type?

A reference type is a type whose values provide indirect access to data or objects stored separately from those values.

Which Manning books explain reference type?

.NET in Action, Second Edition and F# in Action: A Revised Edition of Get Programming with F#.

What should I know before learning reference type?

Manning books that teach reference type usually introduce class first.

What is the difference between reference type and value type?

A reference type is a type whose values provide indirect access to data or objects stored separately from those values. A value type is a type whose values are treated as independent data when assigned or passed, rather than as references to a shared object.

What kinds of reference type are there?

Kinds of reference type include array, string, volatile! and dynamic binding.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.