How to place the object quantity into a _StoredStock
? The quantity is an object which I find it hard to convert it to int
to place the value into _StoredStock
.
class EachStock: Stock
{
public override void bookStock(Quantity quantity)
{
if (quantity.GetType() == typeof(EachStockQuantity))
{
//How to placethe object quantity into a _BookedStock
// the quantity is an object which I find it hard to convert it to int for _StoredStock
}
}
}