TextSerializer<TTargetType>.Deserialize method
Creates a single TargetType object given a record string.
public TTargetType Deserialize(string text, TTargetType returnMaybe = default(TTargetType))
parameter | description |
---|---|
text | Record string to deserialize. |
returnMaybe | Possible return object. Allows creation in calling program. |
Return Value
Newly created TargetType object.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if text is null. |
TextSerializationException | Thrown if the number of fields in the record doesn't match that in TargetType. |
See Also
- class TextSerializer<TTargetType>
- namespace TheCodingMonkey.Serialization