摘要: 1、类的访问权限: public;跨程序集,命名空间,必须被using引用; internal:默认当前命名空间;2、类成员的访问权限: private:私有的,只能当前类; protecte:受保护的,当前类以及子类 public:公共的,跨程序集; internal:当前命名空间,但是随着类... 阅读全文
posted @ 2015-12-24 17:16 左转右转 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 class student 2 { 3 public int _code; 4 public int Code//属性 5 { 6 //获取值 7 get 8 { 9... 阅读全文
posted @ 2015-12-24 11:53 左转右转 阅读(482) 评论(0) 推荐(0) 编辑
摘要: 1 for (int i = 0; i < 10; i++) 2 { 3 student.b++;//静态字段若不赋值,默认为1; 4 new student().a++;//引用类型变量定义后,必须使用new... 阅读全文
posted @ 2015-12-24 11:35 左转右转 阅读(372) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Collections;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Cons... 阅读全文
posted @ 2015-12-24 11:02 左转右转 阅读(201) 评论(0) 推荐(0) 编辑