会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
自由无风
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
23
下一页
2015年5月18日
FileStream操作文件读写
摘要: FileStream fsRead = new FileStream(@"C:\Users\Administrator\Desktop\u.html",FileMode.OpenOrCreate,FileAccess.Read); byte[] buffer = new ...
阅读全文
posted @ 2015-05-18 22:55 自由无风
阅读(821)
评论(0)
推荐(0)
2015年5月17日
C#Dictionary 实例
摘要: Dictionary dc = new Dictionary(); dc.Add(1, "看了"); dc.Add(2, "没看"); dc.Add(3, "不知道"); dc[1] = "哈哈"; ...
阅读全文
posted @ 2015-05-17 22:32 自由无风
阅读(515)
评论(0)
推荐(0)
C#list泛型集合
摘要: //创建list泛型集合 List ilist = new List(); ilist.Add(1); ilist.Add(9); ilist.AddRange(new int[] { 23...
阅读全文
posted @ 2015-05-17 09:36 自由无风
阅读(686)
评论(0)
推荐(0)
C#字节byte类型读取与写入
摘要: //创建文件 //File.Create(@"D:\a.txt"); //Console.WriteLine("创建成功"); ////删除文件 //File.Delete(@"D:\a.txt"); ...
阅读全文
posted @ 2015-05-17 09:25 自由无风
阅读(4716)
评论(0)
推荐(0)
2015年5月16日
Hashtable键值集合
摘要: //Hashtable键值集合 键必须是维一的 类似于索引 Hashtable ht = new Hashtable(); ht.Add(1, "中国"); ht.Add(2, 123); ht.Add(...
阅读全文
posted @ 2015-05-16 20:45 自由无风
阅读(397)
评论(0)
推荐(0)
ArrayList 练习
摘要: ArrayList list = new ArrayList(); Random rd = new Random(); for (int i = 0; i <10; i++) { int rNumbe...
阅读全文
posted @ 2015-05-16 20:08 自由无风
阅读(135)
评论(0)
推荐(0)
protected访问修饰符
摘要: 子类可以调用,但实例化的对像不可调用 new object;
阅读全文
posted @ 2015-05-16 19:44 自由无风
阅读(167)
评论(0)
推荐(0)
C#ArrayList对象集合
摘要: ArrayList alist = new ArrayList(); //集合对像 长度可以改变,类型不限 //添加单个元素可以Add() alist.Add("在在的"); alist.Add(35);...
阅读全文
posted @ 2015-05-16 18:54 自由无风
阅读(1361)
评论(0)
推荐(0)
2015年5月14日
C#字符串的比较
摘要: Console.WriteLine("输入字符1"); string n1 = Console.ReadLine(); Console.WriteLine("输入字符2"); string n2 = Console.ReadLin...
阅读全文
posted @ 2015-05-14 21:36 自由无风
阅读(11832)
评论(0)
推荐(0)
2015年5月13日
C#字符串分割
摘要: string str = "af adsf e4afef3 _asdf $adsf"; char[] chr = { ' ', '_', '$' }; //StringSplitOptions.RemoveEmptyEntries去掉空格 ...
阅读全文
posted @ 2015-05-13 22:34 自由无风
阅读(180)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
下一页
公告