UtilsAssignDefaultWhenNullT Method (NullableT, T) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
This will be replaced with null-coalescing assignment in C# 8.0
Namespace:
Telogis.GeoBase.GeoStream.Server.NWF
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static T? AssignDefaultWhenNull<T>(
T? data,
T defaultValue
)
where T : struct, new()
Public Shared Function AssignDefaultWhenNull(Of T As {Structure, New}) (
data As T?,
defaultValue As T
) As T?
Parameters
- data
- Type: SystemNullableT
- defaultValue
- Type: T
Type Parameters
- T
Return Value
Type:
NullableTSee Also