现在的位置: 首页 > 综合 > 正文

TryParse

2012年04月25日 ⁄ 综合 ⁄ 共 149字 ⁄ 字号 评论关闭
            decimal c = 2923674599.000M;
            long a = Convert.ToInt64(c);
            long b;

            if (long.TryParse(c.ToString(), out b)) { }

 猜猜 a=? & b=? 

抱歉!评论已关闭.