摘要: string strType = "123"; object objType= (object)strType;//可以不要,隐式转换, 要的为显式转换 string strType2 = (string)objType; //必须要,显式转换 int intType = (int)st... 阅读全文
posted @ 2015-07-02 17:52 天涯过者 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: 这个也是本章重点向描述的部分,首先我们可以使用VS2012RC来新建一个MVC4.0项目,版本可以为4.0或4.5。在Global.asax文件代码中,我们发现已经把过滤器,路由器,以及对样式表和脚本捆绑(Bundles)移到了其他页面,就是在根目录下的App_Start文件夹内。代码只是简简单单的... 阅读全文
posted @ 2015-07-02 10:53 天涯过者 阅读(449) 评论(0) 推荐(0) 编辑