Difference between revisions of "Dice/PbP/RollPost/Deserialize"
From DiceRoller Documentation
(Created page with "{{APIdoc|RollPost.Deserialize Method (Stream)}} Deserializes a serialized RollPost. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public static RollPost Deserialize( S...") |
|||
Line 23: | Line 23: | ||
== Remarks == | == Remarks == | ||
This method should be used whenever deserializing data from a database or other persistent storage (that was serialized using [[../Serialize|RollPost.Serialize]]). It should '''not''' be used when deserializing data that was not serialized using RollPost.Serialize(). | This method should be used whenever deserializing data from a database or other persistent storage (that was serialized using [[../Serialize|RollPost.Serialize]]). It should '''not''' be used when deserializing data that was not serialized using RollPost.Serialize(). | ||
+ | |||
+ | == See Also == | ||
+ | The [[../|RollPost class documentation]] contains an example using Deserialize() to retrieve data from a database. |
Latest revision as of 16:40, 15 May 2017
Deserializes a serialized RollPost.
- Namespace: Dice.PbP
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public static RollPost Deserialize(
Stream serializationStream
)
Parameters
- serializationStream
- Type: System.IO.Stream
- Stream containing serialized data.
Return Value
Type: Dice.PbP.RollPost
The deserialized RollPost.
Remarks
This method should be used whenever deserializing data from a database or other persistent storage (that was serialized using RollPost.Serialize). It should not be used when deserializing data that was not serialized using RollPost.Serialize().
See Also
The RollPost class documentation contains an example using Deserialize() to retrieve data from a database.