Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class Balance
{
public Balance(decimal amount, DateTime asOf)
{
Amount = amount;
AsOf = asOf;
}
public decimal Amount { get; private set; }
public DateTime AsOf { get;private set; }
public void Add(decimal value)
{
AsOf = DateTime.UtcNow;
Amount += value;
}
public void Subtract(decimal value)
{
AsOf = DateTime.UtcNow;
Amount -= value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.