ToStruct
Leave feedback
On this page
Converts the property value to a value type.
public T? ToStruct<T>()
where T : struct
| Parameter | Description |
|---|---|
| T | The exact type to convert to. |
The converted value or null if there is no such conversion.
- class PropertyValue
- namespace GroupDocs.Metadata.Common
- assembly GroupDocs.Metadata
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. |
The converted value or the specified default value if there is no such conversion.
- class PropertyValue
- namespace GroupDocs.Metadata.Common
- assembly GroupDocs.Metadata
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.