|
SerializationGetOrDefaultT Method
|
Namespace: GSFAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
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