Skip to main content

AcceptsNull(Type) Method

Returns a value indicating whether null can be assigned to the specified type.

Definition

Namespace: Avalonia.Utilities
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public static bool AcceptsNull(
Type type
)

Parameters

  Type
The type.

Return Value

Boolean
True if the type accepts null values; otherwise false.

See Also

Reference

TypeUtilities Class
AcceptsNull Overload
Avalonia.Utilities Namespace