Skip to content

Instantly share code, notes, and snippets.

@MarkBorcherding
Created February 16, 2010 18:43
Show Gist options
  • Select an option

  • Save MarkBorcherding/305781 to your computer and use it in GitHub Desktop.

Select an option

Save MarkBorcherding/305781 to your computer and use it in GitHub Desktop.
public decimal? MonthlyPrice
{
get
{
try
{
return AddOnRates.Single(x => x.PaymentTerm == PaymentTerm.Monthly).Price;
} catch(InvalidOperationException ex)
{
throw new InvalidOperationException("Monthly price for " + idAddOn + " was not found.",ex);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment