上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: 在VB年代有专门的IMAGE数组控件,在.NET下却没有了这个控件,只能自己来实现。今天看DEVEXPRESS代码摘出来学习了一下 public class ImageCollectionEditor { private Image GetImageFromCollection(Image iml, int width, int height, int wIndex... 阅读全文
posted @ 2008-02-24 19:59 forrestsun 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 第一次面试时出的题,想起来了写了一遍,留个念想. 输入一串字符串,计算大写字母个数. static void Main(string[] args) { Console.Write("请输入大小写字母,以回车键结束:"); string inputStr = Console.ReadLine(); char[... 阅读全文
posted @ 2008-02-14 14:31 forrestsun 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 初步了解XML在SQL2005中的XML索引的建立及简单查询的实现 阅读全文
posted @ 2007-12-14 22:03 forrestsun 阅读(383) 评论(0) 推荐(0) 编辑
摘要: SQL2005中关于XML新特性的学习(1) 参考文档《XML Support in Microsoft SQL Server 2005》 初步了解XML在SQL2005中的存储及检索机制 阅读全文
posted @ 2007-12-12 10:29 forrestsun 阅读(359) 评论(2) 推荐(0) 编辑
摘要: Could't creat any visual c# project in visual studio 2008 beta 2 阅读全文
posted @ 2007-10-29 23:13 forrestsun 阅读(283) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Management; using System.Net.Sockets; using System.Net; namespace SystemInfo { class Program { static v... 阅读全文
posted @ 2007-09-27 16:20 forrestsun 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 这次来实现老鼠类 class Rat:IObserver { public List Subject { set { var _tiger = (Tiger)value.Where(getTiger => getTiger is Tiger).First();... 阅读全文
posted @ 2007-09-01 22:55 forrestsun 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 也谈猫、老鼠、主人的观察者模式问题 在这个贴子中我利用微软在ISSUEVISION项目中的观察者模式做了测试,但是从中我也发现所有需要触发的方法都会放在同一个类中,如是多个通知类的情况下如何处理未找到相关的文章,具体还算不算是观察者模式,有点乱,大家自己看吧. Adrian H.兄在看了我的贴子后实在看不下去我的命名规则了,所以在这次将所有类进行了重命名:) 先将类设计图放上来 catfam... 阅读全文
posted @ 2007-09-01 22:45 forrestsun 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 一开始用LINQ做了测试,看了Lambda后又重新写了一次,同时将其它一些新特性加了进去,就不单独测试了。三个测试类已在LINQ学习中给出,这里就不写了 1: using System; 2: using System.Collections.Generic; 3: using System.Linq; 4: using System.Text; 5: 6:... 阅读全文
posted @ 2007-08-31 23:13 forrestsun 阅读(385) 评论(2) 推荐(0) 编辑
摘要: 这里我建立了三个测试类 catfamily ,cat与tiger cat 与tiger继承自catfamily,catfamily是抽象类,有一个方法Miao()。建立一个catfamily的List泛型 ,然后通过LINQ去查询cat 或是tiger namespace LinqTest { class Cats:CatFamily { public ove... 阅读全文
posted @ 2007-08-31 22:55 forrestsun 阅读(409) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页