コード例 #1
0
        private void InsertToRegistery(CashBase cash)
        {
            if (!AvailableCash.ContainsKey(cash.GetType().FullName))
            {
                AvailableCash[cash.GetType().FullName] = cash;
            }

            AvailableCash[cash.GetType().FullName].Count++;
        }
コード例 #2
0
 private void RemoveFromRegistery(CashBase cash)
 {
     AvailableCash[cash.GetType().FullName].Count--;
 }