ToStruct

ToStruct<T>()

Converts the property value to a value type.

public T? ToStruct<T>()
    where T : struct
Parameter Description
T The exact type to convert to.

Return Value

The converted value or null if there is no such conversion.

See Also


ToStruct<T>(T)

Converts the property value to a value type.

public T ToStruct<T>(T @default)
    where T : struct
Parameter Description
T The exact type to convert to.
default A value that should be used by default if conversion fails.

Return Value

The converted value or the specified default value if there is no such conversion.

See Also