2006年4月10日

默认构造器 与 值类型的构造器

摘要: 『TaeheeLive's learning notes of C#.(1)默认构造器 与 值类型的构造器。』 //定义 值类型 struct SomeValueType { int x=87;//[错误]:结构中不能有实例字段初始值设定项。 } //上面的会转换成 以下代码。 struct SomeValueType { int x; public SomeValueType(... 阅读全文

posted @ 2006-04-10 18:25 Clark Chan 阅读(274) 评论(3) 推荐(0) 编辑

导航