Bridge

Nullable<(Of <(<'T>)>)>..::..GetValueOrDefault Method (T)

Retrieves the value of the current Nullable<(Of <(<'T>)>)> object, or the specified default value.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


[TemplateAttribute]
public T GetValueOrDefault(
	T defaultValue
)
<TemplateAttribute> _
Public Function GetValueOrDefault ( _
	defaultValue As T _
) As T
[TemplateAttribute]
public:
T GetValueOrDefault(
	T defaultValue
)

Parameters

defaultValue
Type: T
A value to return if the HasValue property is false.

Return Value

The value of the Value property if the HasValue property is true; otherwise, the defaultValue parameter.