![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
WanTianwen
人生就像是一场战斗。
展开
-
WPF:向客户端发出某一属性值已更改的通知INotifyPropertyChanged接口
Person.csusing System.ComponentModel;namespace _01_INotifyPropertyChanged{ class Person:INotifyPropertyChanged { private double height; private double weight; public...原创 2014-01-06 11:27:22 · 2321 阅读 · 0 评论 -
通过线程计数器和Thread.Join方法得到线程已完成状态
方法一:线程计数器 class Program { static void Main(string[] args) { Thread[] ths = new Thread[3]; ThreadCounter counter1 = new ThreadCounter(1000); ...转载 2015-08-11 23:24:56 · 2025 阅读 · 0 评论 -
C#定时检测子线程是否已经完成
C#定时检测子线程是否已经完成 class Program { static void Main(string[] args) { //主线程中启动一个支线程,执行doSomething这样的一个方法。 Thread thread = new Thread(new ThreadStart(ThreadRu...原创 2015-08-11 22:49:46 · 2724 阅读 · 0 评论 -
WPF中多线程统计拆箱装箱和泛型的执行效率
WPF中多线程统计拆箱装箱和泛型的执行效率,使用的知识点有泛型、多线程、委托,从例子中可以看到使用泛型的效率至少提升2倍MainWindow.xaml<Window x:Class="Box.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x...原创 2015-08-20 11:26:44 · 1454 阅读 · 0 评论