|
SerializationGetOrDefaultT Method
|
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax Remarks SerializationInfo do not have a direct way of determining if an item with a specified name exists, so when calling
one of the Get(n) functions you will simply get a
SerializationException if the parameter does not exist; similarly
you will receive this exception if the parameter fails to properly deserialize. This extension method protects against both of
these failures and returns a default value if the named parameter does not exist or cannot be deserialized.
See Also