Bridge

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

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

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

Syntax


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

Return Value

The value of the Value property if the HasValue property is true; otherwise, the default value of the current Nullable<(Of <(<'T>)>)> object. The type of the default value is the type argument of the current Nullable<(Of <(<'T>)>)> object, and the value of the default value consists solely of binary zeroes.