Skip to content

Instantly share code, notes, and snippets.

@raschmitt
Created May 10, 2020 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raschmitt/85ba47cd8cd2f3f829a8fd783dc276c1 to your computer and use it in GitHub Desktop.
Save raschmitt/85ba47cd8cd2f3f829a8fd783dc276c1 to your computer and use it in GitHub Desktop.
public class Item
{
public Item(string name, double price)
{
Name = name;
Price = price;
PurchaseTime = DateTime.Now;
}
public string Name { get; protected set; }
public double Price { get; protected set; }
public DateTime PurchaseTime { get; protected set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment