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