我得到了下面的类:联合元素
public class Action
{
public Player player { get; private set; }
public string type { get; private set; }
public decimal amount { get; private set; }
}
这是在列表中使用:
public List<Action> Action
根据type
我显示一些自定义文本。但是,如果type = "folds"
我只显示1 Folds
。如果有很多folds
层出不穷,但目前显示:
1 folds, 1 folds, 1 folds, ...
我如何可以结合使用这些folds
在一个巧妙的方法和这样显示出来:
3 folds, ...
我也想知道这一点,但你需要计算*连续*相等的动作。 –