示例#1
0
        static public double AfectInvestmentBy(this AccountTransaction transaction)
        {
            Type type = transaction.GetType();

            if (type == typeof(CertificateOfDeposit))
            {
                return(transaction.value());
            }
            else
            {
                return(0);
            }
        }