GildedRose-Refactoring-Kata/csharp/Item.cs
2021-10-31 17:16:34 +02:00

24 lines
526 B
C#

namespace csharp
{
public class Item
{
public string Name { get; set; }
public int SellIn { get; set; }
public int Quality { get; set; }
public Item()
{
}
public Item(Item item)
{
this.Name = item.Name;
this.SellIn = item.SellIn;
this.Quality = item.Quality;
}
public override string ToString()
{
return this.Name + ", " + this.SellIn + ", " + this.Quality;
}
}
}