Files
basic-computer-games/03_Animal/csharp/Branch.cs
Martin Thoma e64fb6795c MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00

19 lines
348 B
C#

namespace Animal
{
public class Branch
{
public string Text { get; set; }
public bool IsEnd => Yes == null && No == null;
public Branch Yes { get; set; }
public Branch No { get; set; }
public override string ToString()
{
return $"{Text} : IsEnd {IsEnd}";
}
}
}