< Dice‎ | PbP‎ | RollPost

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.