# Nullable Reference Types

From Umbraco version 10, Nullable Reference Types is enabled by default in Umbraco.

Nullable reference types is a group of features introduced in C# 8.0. These features can be used to minimize the likelihood that your code causes the runtime to throw `System.NullReferenceException`.

Nullable reference types includes three features that help you avoid these exceptions, including the ability to explicitly mark a reference type as nullable:

* Improved static flow analysis that determines if a variable may be null before dereferencing it.
* Attributes that annotate APIs so that the flow analysis determines null-state.
* Variable annotations that developers use to explicitly declare the intended null-state for a variable.

To learn more about Nullable Reference Types, refer to the [Microsoft Documentation](https://docs.microsoft.com/en-us/dotnet/csharp/nullable-references)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.umbraco.com/umbraco-cms/13.latest/implementation/nullable-reference-types.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
