Difference between revisions of "Dice/RollResult/GetObjectData"

From DiceRoller Documentation
(Created page with "{{APIdoc|RollResult.GetObjectData Method (SerializationInfo, StreamingContext)}} Serializes the RollResult. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public virtual vo...")
 
(No difference)

Latest revision as of 22:46, 24 April 2017

Serializes the RollResult.

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

Syntax

public virtual 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 RollRoot is not serialized. When a RollResult is serialized and subsequently deserialized, it will compare equal to the object that was serialized.