Photon Quantum 2.1.1

Public Member Functions | Properties | List of all members
Photon.Deterministic.NullableFP Struct Reference

A serializable equivalent of Nullable<FP>. More...

Public Member Functions

FP ValueOrDefault (FP v)
 If HasValue is true, returns Value. Otherwise returns v . More...
 

Properties

Boolean HasValue [get]
 Returns true if this nullable has a value. More...
 
FP Value [get]
 Returns current value. More...
 

Detailed Description

A serializable equivalent of Nullable<FP>.

Member Function Documentation

◆ ValueOrDefault()

FP Photon.Deterministic.NullableFP.ValueOrDefault ( FP  v)
inline

If HasValue is true, returns Value. Otherwise returns v .

Parameters
v
Returns

Property Documentation

◆ HasValue

Boolean Photon.Deterministic.NullableFP.HasValue
get

Returns true if this nullable has a value.

◆ Value

FP Photon.Deterministic.NullableFP.Value
get

Returns current value.

Exceptions
NullReferenceExceptionIf HasValue is false