Table of Contents

ENullConvertException Class

Exception raised when attempting to read the value of a null Nullable<T>.

Remarks

This exception is raised when the Value property or the implicit conversion to T is used on a Nullable<T> that has no value assigned. Use HasValue or IsNull to check before accessing the value, or use ValueOrDefault to safely retrieve a fallback.

Syntax

Unit: Bcl.Types.Nullable

ENullConvertException = class(Exception);

Constructors

Name Description
Create Creates a new ENullConvertException instance with a message indicating the target type.