Edit

Share via


Argument.GetDefaultValue Method

Definition

Gets the default value for the argument.

public object? GetDefaultValue();

Returns

Returns the default value for the argument, if defined. Null otherwise.

Implements

Applies to

Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)