< Dice‎ | PbP‎ | RollPost
Revision as of 18:20, 1 May 2017 by Skizzerz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollPost.Current Property

From DiceRoller Documentation

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.