- 博客(6)
- 资源 (3)
- 收藏
- 关注
转载 C#本身自带的X进制之间的转换
<br />//十进制转二进制<br />Console.WriteLine(Convert.ToString(69, 2));<br />//十进制转八进制<br />Console.WriteLine(Convert.ToString(69, 8));<br />//十进制转十六进制<br />Console.WriteLine(Convert.ToString(69, 16));<br />//二进制转十进制<br />Console.WriteLine(Convert.ToInt32(”100111
2010-11-23 12:38:00 989
转载 Winform的多线程问题
<br />在System.Threading命名空间下,包含了用于创建和控制线程的Thread类。对线程的常用操作有:启动线程、终止线程、合并线程和让线程休眠等。 1. 启动线程<br /> 在使用线程前,首先要创建一个线程。其一般形式为:<br />Thread t=new Thread(enterPoint);<br /> 其中enterPoint为线程的入口,即线程开始执行的方法。在托管代码中,通过委托处理线程执行的代码。例如:<br />Thread t=new Thread(n
2010-11-10 17:07:00 12797
转载 WPF的多线程问题
原帖 WPF线程处理模型 收藏 http://msdn.microsoft.com/zh-cn/library/ms741870.aspxWindows Presentation Foundation线程处理模型更新:2007 年 11 月Windows Presentation Foundation (WPF) 旨在帮助开发人员解决线程处理的难题。这样,大多数 WPF 开发人员就不必编写使用多个线程的接口。由于多线程程序很复杂且难以调试,因此只要存在单线程解决方案,就应避免使用多个线程。 但是,无论体系
2010-11-10 17:03:00 4859
转载 浅谈c#中使用lock的是与非
<br />1、从“最简单”的单例模式说起:<br />public class Singleton<br />{<br /> private static Singleton instance = null;<br /> private static readonly object syncRoot = new object();<br /><br /> private Singleton()<br /> {<br /> }<br /><br /> public sta
2010-11-10 13:35:00 1113
转载 XmlDocument与XPath(System.xml)
<br /> XPath 是 XML 的内容,这里 SelectNodes 是 C# 中 XmlDocument 或 XmlNode 的一个方法。SelectNodes 使用 XPath 来选取节点。<br />重要语法<br />SelectNodes("item")<br />从当前节点的儿子节点中选择名称为 item 的节点。<br />SelectNodes("/item")<br />从根节点的儿子节点中选择名称为 item 的节点。<br />SelectNodes("//item")<b
2010-11-09 09:40:00 1008
转载 在IIS6+Framework4.0上部署Silverlight4+WCF应用程序
<br />整个过程我们分为两部分来完成:第一步,在VS2010中发布应用程序,将需要部署到服务器上的内容发布到一个指定的文件夹;第二部,在服务器上进行部署和配置。我们先来做两个假定如下:<br />l 假定Web服务器地址(站点浏览路径):http://192.168.8.102<br />l 假定数据库服务器地址:192.168.8.101<br />下面我们就这两个步骤,进行详细说明:<br />一、在VS2010中发布应用程序<br />1. 开发环境VS2010,web站点http://local
2010-11-09 09:22:00 1578
WPF高级编程源代码
2010-05-25
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人