摘要: C#代码的其他规范: 。接口的名称加前缀I interface Icompare { int Compare() } 。自定义的属性以Attribute结尾 public class AuthorAttribute:Attribute 。自定义的异常以Exception结尾 public class 阅读全文
posted @ 2018-12-05 11:15 steven_xiao 阅读(219) 评论(0) 推荐(0) 编辑
摘要: C#代码的语法和格式 1.使用using关键字把.Net Framework类库相对应的命名空间映入到应用程序项目空间中; 2,必须定义类 C#程序的源代码必须放在类中,一个程序至少包括一个自定义的类,用关键字class声明; 3,类的代码主要由方法组成 C#程序中必须包含Main方法。程序从Mai 阅读全文
posted @ 2018-12-05 10:55 steven_xiao 阅读(1666) 评论(0) 推荐(0) 编辑