摘要:
class myclass{}类属性 :public internal abstract sealed static unsafe partial类名: 类型参数 唯一基类 多个接口类体内:方法 属性 索引器 事件 字段 构造方法 运算符函数 嵌套类型 析构函数字段类中的变量 可以用到的修饰符有st... 阅读全文
摘要:
命名空间 命名空间把相关类组织在一块,避免命名冲突,也更容易找到类。命名空间是独立于程序集的。namespace out.mid.inner{ class class1{} class class2{}}namespace out{ namespace mid{ namespace inner{ c... 阅读全文
摘要:
变量 :局部变量 参数 字段 数组栈:保存局部变量 和参数的地方 ,函数调用创建栈空间 函数退出释放栈空间。堆:对象占有的那块内存。静态字段 常量 也在堆空间。但是一直程序结束时释放。decimal d = default(decimal);局部变量 没赋值前不能使用,而数组 字段 会用默认值填充。 阅读全文