None Literal¶
None represents the absence of a value. It is valid for both nullable types (T | None) and optional types (T?):
For T | None, bare None emits C# null. For T? (Optional[T]), bare None emits C# default, producing an empty optional. None() remains valid as an explicit alternative for T?.
See Optional Type for details on T?.
Implementation
- ✅ Native - None → null for T | None, default for T?.