int.TryParse非预期执行引发的思考 问题出现 这天在写一个页面,想谨慎些就用了int.TryParse,结果出问题了. 代码如下: Copy int id = 1000; //Request.QueryString["id"] = null int.TryParse( Request.QueryString["id"], out id ); //使用 id 进行其他操作... 因为Request.QueryString["id"]
http://askubuntu.com/questions/465531/how-to-make-a-shell-file-execute-by-double-click up vote7down voteaccepted To run your script by double clicking on its icon, you will need to create a .desktop file for it: [Desktop Entry] Name=My script Comment