//Constructor public Stock(string symbol, string currency, StockTypeEnum stocktype, decimal lastdividend, decimal fixeddividend, decimal parvalue, decimal tickerprice) { Symbol = symbol; Currency = currency; StockType = stocktype; LastDividend = lastdividend; FixedDividend = fixeddividend; ParValue = parvalue; TickerPrice = tickerprice; }
public static bool IsInventoryItem(int typeValue) { StockTypeEnum type = (StockTypeEnum)typeValue; return(StockTypeCheck.IsInventoryItem(type)); }
public static bool IsInventoryItem(StockTypeEnum type) { return(StockTypeCheck.inventoryItems.Contains(type)); }