Difference between revisions of "Dice/PbP/RollPost/RollPost (SerializationInfo, StreamingContext)"
From DiceRoller Documentation
(Created page with "{{APIdoc|RollPost Constructor (SerializationInfo, StreamingContext)}} Constructs a new RollPost using serialized data. {{ns}} == Syntax == <syntaxhighlight lang="C#"> protec...") |
|||
Line 29: | Line 29: | ||
== Remarks == | == Remarks == | ||
− | This should be used whenever creating a RollPost based on an existing post. It can be called via calling Deserialize() on a serialized RollPost. [[../StoredList|StoredList]] and [[../PristineList|PristineList]] are initialized from the deserialized data (although they will contain only {{cs|null}}s until the [[../OnDeserialization|OnDeserialization]] callback is fired) | + | This should be used whenever creating a RollPost based on an existing post. It can be called via calling Deserialize() on a serialized RollPost. [[../CurrentList|CurrentList]], [[../StoredList|StoredList]] and [[../PristineList|PristineList]] are initialized from the deserialized data (although they will contain only {{cs|null}}s until the [[../OnDeserialization|OnDeserialization]] callback is fired). |
Latest revision as of 16:28, 15 May 2017
Constructs a new RollPost using serialized data.
- Namespace: Dice.PbP
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
protected RollPost(
SerializationInfo info,
StreamingContext context
)
Parameters
- info
- Type: System.Runtime.Serialization.SerializationInfo
- Serialized data to fill object with.
- context
- Type: System.Runtime.Serialization.StreamingContext
- Streaming context, unused.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | info is null .
|
Remarks
This should be used whenever creating a RollPost based on an existing post. It can be called via calling Deserialize() on a serialized RollPost. CurrentList, StoredList and PristineList are initialized from the deserialized data (although they will contain only null
s until the OnDeserialization callback is fired).