Hi,
I got following class:
public class Action
{
public Player player { get; private set; }
public string type { get; private set; }
public decimal amount { get; private set; }
}
Which is used in a List:
public List<Action> Action
Depending on type
I display some custom text. But if type = "folds"
I just display 1 Folds
. If there are many folds
after another, it currently displays:
1 folds, 1 folds, 1 folds, ...
How can I combine those folds
in a smart way and display it like this:
3 folds, ...