PropertyValueToStructT Method (T)
Converts the property value to a value type.

Namespace: GroupDocs.Metadata.Common
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public T ToStruct<T>(
	T default
)
where T : struct, new()

Parameters

default
Type: T
A value that should be used by default if conversion fails.

Type Parameters

T
The exact type to convert to.

Return Value

Type: T
The converted value or the specified default value if there is no such conversion.
See Also