I'm getting a stack overflow error... I'll try to isolate it. Running VS 2002 on this machine.
EDIT:
'K, it's here:
RollDiceBase.cs line 109
public String diceString
{
get
{
if (diceString.Equals("") == true)
{
return (NumberTimes.ToString() +
"D" + WhichDice.ToString());
}
EDIT2: OK, here's the fixed property get method
(it is somewhat dangerous to have a property and a private member that differ only in case...)
public String diceString
{
get
{
if (DiceString.Equals("") == true)
{
return (NumberTimes.ToString() +
"D" + WhichDice.ToString());
}
else if (DiceString == null)
throw new
NullReferenceException("DiceString has not been initialized yet!");
else
return DiceString;
}
}
EDIT3: Looks very nice.