object转为string

object为null时 

错误:object.tostring() 空指针

正确:(string)object  

posted @ 2019-11-02 10:41  yomi丶  阅读(130)  评论(0编辑  收藏  举报