We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Retrieves the value of the current Nullable(T) object, or value returned by factory.
Namespace: CodeJamAssembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static T GetValueOrDefault<T>( Nullable<T> value, Func<T> defaultFactory ) where T : struct, new()
VB
Public Shared Function GetValueOrDefault(Of T As {Structure, New}) ( value As Nullable(Of T), defaultFactory As Func(Of T) ) As T
F#
static member GetValueOrDefault : value : Nullable<'T> * defaultFactory : Func<'T> -> 'T when 'T : struct, new()
false
Type: TThe value of the Value property if the HasValue property is true; otherwise, the value returned by defaultFactory parameter.
true
NullableHelper ClassCodeJam Namespace