复习笔记2018.8.3

1,"a" + "b" + 3 strcat

double d = 3
object obj = d
int i = (int)obj --异常
测试下装箱拆箱的时间,似乎很慢
拆装箱的本质??
看IL代码
"abbcd"是个引用?
s = "a" 有装箱吗?
s + "b" 有装箱吗?

where T :struct
where R :class
where V : ICompareable
where w : CAnimal
where x : class, new()
new必须是最后一个


IEnumerator实现枚举

显式实现
继承两个接口,中有同名方法
类型推断
hashtable dirtionary

yield方式的
IEnumerator
IEnumerable
IEnumerator<T>泛型实现 ?

------------------------------
索引器重载: 多维数组,string类型索引
可为空类型,object ?

什么叫类型安全?

委托接收实例的方法: dfun = obj.func
多播委托的加减顺序?
委托列表为空时可以继续减,但调用异常

线程t1调用t2.abort终止t2
t2在自己的线程中使用异常捕获,并输出t1传过来的信息

当前路径用 . 表示

GetType 可以用类名调用 ?
GetType("System.string") ?

原文地址:https://www.cnblogs.com/timeObjserver/p/9411256.html