摘要: 垃圾回收的目的:提高内存利用率。 垃圾回收器只回收托管堆中的内存。 垃圾回收是.net CLR 自动来执行的,一般不需要手动干预。 强制回收:GC.collect() 什么样的对象会被回收:没有变量引用的对象。 什么时间回收:不确定,当程序需要新内存时。 垃圾回收器中“代”的概念。 阅读全文
posted @ 2019-03-11 16:51 张玉昊 阅读(138) 评论(0) 推荐(0)
摘要: string类型不能被继承,它是密封类,sealed。 一、字符串的特性。 1、不可变性。 2、字符串池。 二、常用方法。 方法不一一写出来了。 tringbuilder的使用。 大量拼接字符串的时候用。效率比string高。使用: 阅读全文
posted @ 2019-03-11 15:27 张玉昊 阅读(471) 评论(2) 推荐(0)
摘要: 原文: The boss's letter. A:Can you come here a minute please,Bob? B:Yes,sir. A:Where is C? B:She is next door. She is in her office sir. A:Can she type 阅读全文
posted @ 2019-03-11 14:52 张玉昊 阅读(177) 评论(0) 推荐(0)
摘要: 原文: Hurry up! A:Can you make the tea,Sam? B:Yes,of course I can ,Penny. Is there any water in this kettle? A:Yes ,there is. B:Where is the tea? A:It's 阅读全文
posted @ 2019-03-11 14:43 张玉昊 阅读(178) 评论(0) 推荐(0)