Difference between revisions of "Dice/PbP/RollPost/Current"
From DiceRoller Documentation
(Created page with "{{APIdoc|RollPost.Current Property}} Gets the current version of the post (the one being checked). {{ns}} == Syntax == <syntaxhighlight lang="C#"> public IReadOnlyList<RollR...") |
(No difference)
|
Latest revision as of 18:20, 1 May 2017
Gets the current version of the post (the one being checked).
- Namespace: Dice.PbP
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
public IReadOnlyList<RollResult> Current { get; }
Property Value
Type: System.Collections.Generic.IReadOnlyList<Dice.RollResult>
The current version of the post (the one being checked). This starts out empty even when deserializing, and is added to via AddRoll().
Remarks
When validating a post, the existing RollPost should be deserialized, and then every roll in the post should be added again to the class via AddRoll in the correct order. Once all posts are added, Validate should be called.