2009年9月15日

摘要: Finalize()This method is automatically called after an object becomes inaccessible, unless the object has been exempted from finalization by a call to SuppressFinalize. During shutdown of an application domain, Finalize is automatically called on objects that are not exempt from finalization, even t 阅读全文
posted @ 2009-09-15 16:42 做个不善的人 阅读(1605) 评论(0) 推荐(0)
 
摘要: Type.IsPointer:判断一个类型是否是一个指针。什么时候会返回true呢?Type.IsAssignableFrom(Type c): b.IsAssignableFrom(c)在以下几种情况下会返回true:b和c是同一类型;b是c的父类或者c实现的接口;c是泛型类型参数,而b表示c的约束之一;以上不符合或者c是空引用时为false; 阅读全文
posted @ 2009-09-15 12:42 做个不善的人 阅读(218) 评论(0) 推荐(0)