< Dice | RollResult
Difference between revisions of "Dice/RollResult/Deserialize"
From DiceRoller Documentation
 (Created page with "{{APIdoc|RollResult.Deserialize Method (Stream)}} Deserializes binary data from the given stream.  {{ns}}  == Syntax == <syntaxhighlight lang="C#"> public static RollPost Dese...")  | 
				|||
| Line 6: | Line 6: | ||
== Syntax ==  | == Syntax ==  | ||
<syntaxhighlight lang="C#">  | <syntaxhighlight lang="C#">  | ||
| − | public static   | + | public static RollResult Deserialize(  | 
     Stream serializationStream  |      Stream serializationStream  | ||
)  | )  | ||
Latest revision as of 19:48, 15 May 2017
Deserializes binary data from the given stream.
- Namespace: Dice
 - Assembly: DiceRoller (in DiceRoller.dll)
 
Syntax
public static RollResult Deserialize(
    Stream serializationStream
)
Parameters
- serializationStream
 - Type: System.IO.Stream
 - Stream containing serialized data.
 
Return Value
Type: Dice.RollResult
The deserialized RollResult.
Remarks
This method should be used whenever deserializing data from a database or other persistent storage (that was serialized using RollResult.Serialize). It should not be used when deserializing data that was not serialized using RollResult.Serialize().