< Dice‎ | DieResult
Revision as of 19:48, 15 May 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DieResult.Deserialize Method (Stream)}} Deserializes binary data from the given stream. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public static DieResult Dese...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult.Deserialize Method (Stream)

From DiceRoller Documentation

Deserializes binary data from the given stream.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public static DieResult Deserialize(
    Stream serializationStream
)

Parameters

serializationStream
Type: System.IO.Stream
Stream containing serialized data.

Return Value

Type: Dice.DieResult

The deserialized DieResult.

Remarks

This method should be used whenever deserializing data from a database or other persistent storage (that was serialized using DieResult.Serialize). It should not be used when deserializing data that was not serialized using DieResult.Serialize().