shilinc

导航

2006年11月22日 #

RenderTargetBitmap把visual转换为图像

摘要: The following example shows how to use RenderTargetBitmap to render text as an image. C# Copy Code using System; ... 阅读全文

posted @ 2006-11-22 22:34 SHILIN 阅读(1837) 评论(0) 推荐(0)

2006年8月14日 #

c#中指针的速度优化

摘要: using System;using System.Collections.Generic;using System.Text; namespace MATRIX{ class MatrixX { private double[,] m1 = new double[,] { { 1, 2, 3, 4 }, { 2.5, 5, 7, 90 }, { 45, 3.2, 2.5... 阅读全文

posted @ 2006-08-14 12:33 SHILIN 阅读(618) 评论(0) 推荐(0)

2006年6月27日 #

c#中指针的使用

摘要: 使用心得1:c#中可以使用指针数组代替c语言中的二维数组。使用心得2:c#中的指针生命周期仅限于为指针赋值的函数体,当函数返回时,指针的行为是不可预料的。具体代码为:using System;using System.Collections.Generic;using System.Text;using System.Drawing.Imaging;using System.Drawing;usi... 阅读全文

posted @ 2006-06-27 17:46 SHILIN 阅读(1774) 评论(0) 推荐(0)

2006年4月22日 #

企业库2.0安全应用程序块使用(1)

摘要: 企业库2.0安全应用程序块使用(1)第一次使用企业库,不当之处,请高手指点。 一、添加对Caching Common Security objectBuilder四个dll的引用二、完整代码如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using Syst... 阅读全文

posted @ 2006-04-22 15:16 SHILIN 阅读(312) 评论(0) 推荐(0)

2006年4月14日 #

How can I update my user interface from a thread that did not create it? [转]

摘要: When performing any action on a control which requires the updating of a user interface element (e.g. setting the Text property on almost any class derived from Control, updating the data source be... 阅读全文

posted @ 2006-04-14 10:31 SHILIN 阅读(421) 评论(0) 推荐(0)

2006年4月11日 #

adapter设计模式

摘要: adapter设计模式适配器模式尽可能要用对象适配器的结构。 这样才满足松耦合的概念。例://已经存在的接口ckass ExistingClass{public void SpecificRequist(){}public void SpecificRequest2(){}}//另外一个系统能够class MySystem{public void Process(ITarger target... 阅读全文

posted @ 2006-04-11 12:58 SHILIN 阅读(398) 评论(0) 推荐(0)