< Dice‎ | DieResult
Revision as of 18:57, 25 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|DieResult.GetObjectData Method (SerializationInfo, StreamingContext)}} Serializes the DieResult. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public void GetObje...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DieResult.GetObjectData Method (SerializationInfo, StreamingContext)

From DiceRoller Documentation

Serializes the DieResult.

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

Syntax

public void GetObjectData(
    SerializationInfo info,
    StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization.SerializationInfo
Container where serialized data is written to.
context
Type: System.Runtime.Serialization.StreamingContext
Streaming context, unused.

Exceptions

Exception Condition
ArgumentNullException info is null.

Remarks

The DieType, NumSides, Value, Flags, and Data properties are serialized. When a DieResult is serialized and subsequently deserialized, it will compare equal to the object that was serialized.