C# 线程控制
线程,启动,挂起,继续,C# …… 阅读全文
int width = 50; int height = 50; var bitmap = new Bitmap(width, height, PixelFormat.Canonical); for (int y = 0; y < height; y++) for (int x = 0; x < width; x++) { int red = 0; i …… 阅读全文
本文转载自:http://www.cnblogs.com/lilin123/archive/2012/12/20/2826514.html根据上篇博文的反响我想向大家说明,因为本人时间有限加上才疏学浅,无法写出面面俱到的博文。我只是把自己经历的觉得有些意义的技术点分享出来,希望大家见谅。当然,我不会让大家走上歧途的。所有示例都是亲测。今天我想讨论一下事件与委托之间的联系。很多人 …… 阅读全文
我们使用委托主要是为了将方法作为参数进行使用public delegate type functiondeleate();而通过functiondelegate.beginInvoke可以实现线程的作用但是使用委托却难以达到较好的封装性,我们不能把委托类型声明为private,但我们要达到一定的封装性,故事件诞生public event functiondelegate fun …… 阅读全文
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;namespace CsTest{ //可以确定的是n个插值点的拉格朗日多项式的最大次数为n public class Ploy …… 阅读全文