如果需要转换的类型可能为null,如果使用tostring就可能引发错误,这时候可以使用convert.tostring方法。

posted on 2014-11-04 12:11  芝麻的西瓜  阅读(1314)  评论(0编辑  收藏  举报