摘要:
隐式转换和显式转换及强制转换的区别本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/cxzhq2002/archive/2007/02/08/1505302.aspxstring strType = "123";object objType= (object)strType;//可以不要,隐式转换, 要的为显式转换string strType2 = (string)objType; //必须要,显式转换int intType = (int)strType; //错误,不能通过编译int intType = (int)objType; //错误, 阅读全文