如果需要转换的类型可能为null,如果使用tostring就可能引发错误,这时候可以使用convert.tostring方法。 转载于:https://www.cnblogs.com/zinan/p/4073325.html