未将对象引用到实例。【原因】定义时没初始化
string str = null;
Var 推断类型
string str = new string(“面相对象”);
int[ ] a = new int[ 5 ] { 1,2,3,4,5 };
int[ ] a ;
int[ ] a = new int[5];
a[0]=5;
a[0]+=5;
引用类型
int[ ] arrA={1,2,3,4};
int[ ] arrB=arrA; //修改arrB时,arrA也会跟着改变。
string是引用类型,但做了特殊处理,使用效果是值类型的效果。
值类型
struct 结构体
enum 枚举
int double...........等值类型
框架
models 全局变量
DAl 员工【基本功能】
BLL 管理层【业务层】
UI 领导层【交互层】