上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: 原文: Is that all? A:I want some envelopes ,please? B:Do you want the large size or small size? A:The large size , please. B:Do you have any writing pap 阅读全文
posted @ 2019-03-16 13:29 张玉昊 阅读(187) 评论(0) 推荐(0)
摘要: 文件操作常用相关类: File: 操作文件,静态类,对文件整体操作。 Directory:操作目录(文件夹),静态类。 FileInfo:文件类,用来描述一个文件对象,获取指定目录下的所有文件时,返回一个FileInfo数组。 DirectoryInfo:文件夹的一个类,描述一个文件夹对象,返回。。 阅读全文
posted @ 2019-03-15 18:25 张玉昊 阅读(160) 评论(0) 推荐(0)
摘要: 原文: The Sawyer family. The Sawyers live at 87 King street. In the morning Mr.Sawyer goes to work and the children go to school. Their father takes the 阅读全文
posted @ 2019-03-15 14:52 张玉昊 阅读(336) 评论(0) 推荐(0)
摘要: 装箱:值类型-->引用类型。 拆箱:引用类型-->值类型 装箱:把值类型拷贝一份到堆里。反之拆箱。 具有父子关系 是拆装箱的条件之一。 所以: 装的什么类型,拆的时候也必须是对应类型。 使用方法时看是否装拆箱:看需要的参数和传入的参数的集体类型。 使用泛型集合避免装拆箱。 阅读全文
posted @ 2019-03-14 14:59 张玉昊 阅读(404) 评论(0) 推荐(0)
摘要: 原文: An interesting climate. A:where do you come from? B:I come from England. A:What's the climate like in your country? B:It's mild,but it's not alway 阅读全文
posted @ 2019-03-14 13:59 张玉昊 阅读(161) 评论(0) 推荐(0)
摘要: 原文: A pleasant climate. A:Where do you come frome? B:I come from Greece. A:What's the climate like in your country? B:It's very pleasant. A:What's the 阅读全文
posted @ 2019-03-14 13:28 张玉昊 阅读(156) 评论(0) 推荐(0)
摘要: 集合命名空间: using system.collections. 非泛型集合 using system.collections.Generic. 泛型集合 为什么要用集合: 1、数组一旦声明长度就固定了。 2、集合有很多方法可以用 等 常用集合: 类似数组集合:ArrayList List<> 键 阅读全文
posted @ 2019-03-14 10:44 张玉昊 阅读(344) 评论(0) 推荐(0)
摘要: 原文: At the butcher's A:Do you want any meat today,Mrs.B? B:Yes,please. A:Do you want beef or lamb? B:Beef please. A:This lamb is very good. B:I like l 阅读全文
posted @ 2019-03-13 19:00 张玉昊 阅读(186) 评论(0) 推荐(0)
摘要: 垃圾回收的目的:提高内存利用率。 垃圾回收器只回收托管堆中的内存。 垃圾回收是.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)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页