yieid 使用笔记
摘要:实例代码: 1 using System; 2 using System.Collections; 3 4 public class List 5 { 6 7 //来源: http://hi.baidu.com/jiang_yy_jiang 8 public static IEnumerable Power(int number, int exponent) 9 {10 int counter = 0;11 int result = 1;12 while (counter++ < exponent)13 ...
阅读全文
posted @
2013-04-28 15:11
无尤
阅读(360)
推荐(0)
小技巧(一)
摘要:1.在执行*.bat文件时,可以在其中加入 pause 来暂停执行。
阅读全文
posted @
2013-04-28 10:44
无尤
阅读(106)
推荐(0)
C# GDI操作
摘要:转自 :http://www.cnblogs.com/walkingmu/archive/2008/04/22/1165867.html最近在学习C#中的GDI部分,本来尝试编写一个字幕控件(其实还是用label比较合适),但是发现控件中用GDI将整个控件粉刷貌似不行(应该是我水平不行),所以就去捣鼓了下WIN32的DLL,发现用API还真是件幸福的事(仅在WIN32平台上说)。回到C#,在C#中要在一个窗体(控件也是窗体),只要用Graphics g=控件名.CreateGraphics();//这样就可以用g来在这个控件上画东西了。但是如果我想不限范围,在整个屏幕上画,那么.NET就无能为
阅读全文
posted @
2013-04-12 09:28
无尤
阅读(399)
推荐(1)