• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Sky girl
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年5月21日
Convent.ToInt32()与int.parse()的区别
摘要: public static int ToInt32(string value){ { if(value == null) { return 0;}return int.parse( value,CultureInfo.CurrentCulture); }}当convent.toint32参数为null时,返回值为0!而如果int.parse()的参数为null则报异常! 阅读全文
posted @ 2013-05-21 09:21 Sky girl 阅读(125) 评论(0) 推荐(0)
2013年5月20日
强调代码规范
摘要: *规则(法律,必须遵守否则报错) 语法*规范(道德,大家都喜欢有道德的人) 注释 骆驼命名(用在普通变量,字段):第一个单词首字母小写,之后的单词首字母大写userName userPassword realName ....帕斯卡命名(方法名,类名):第一个单词首字母大写,之后的单词首字母大写GetMax() ChangeName() . 定义的变量或者方法名字要有意义。 方法名:动词Write() Open() Close()........(方法都是要做一件事情)变量名:按功能命名,按方法的返回值内容命名useName=GetUserName(); 阅读全文
posted @ 2013-05-20 19:31 Sky girl 阅读(126) 评论(0) 推荐(0)
几个基本小题
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 就业班的代码{ class Program { static void Main(string[] args) { #region 交换两个变量的值(使用第三方) int num1 = 6; int num2 = 5; int t... 阅读全文
posted @ 2013-05-20 16:15 Sky girl 阅读(107) 评论(0) 推荐(0)
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3