![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
shaohang2008
这个作者很懒,什么都没留下…
展开
-
一个简单方法完成C#时间间隔的计算
C#时间间隔计算可以通过时间刻度类TimSpan类实现,这是一个系统类。C#时间间隔计算举例说明:实现两个时间之间C#时间间隔计算: TimeSpan ts1 = new TimeSpan(DateTime.Now.Ticks); //获取当前时间的刻度数 //你的代码或者其他操作 TimeSpan ts2 = new TimeSpan(DateTime.Now.Ticks); TimeSpan ts = ts2.Subtract(ts1).Duration()转载 2010-07-15 13:50:00 · 366 阅读 · 0 评论 -
C#中对DatagridView部分常用操作
<br />0(最基本的技巧)、获取某列中的某行(某单元格)中的内容 <br /><br />this.currentposition = this.dataGridView1.BindingContext <br />[this.dataGridView1.DataSource, this.dataGridView1.DataMember].Position; <br />bookContent = this.database.dataSet.Tables[0].Rows <br />[this.转载 2010-07-17 20:27:00 · 275 阅读 · 0 评论 -
C#中对DatagridView部分常用操作
<br />0(最基本的技巧)、获取某列中的某行(某单元格)中的内容 <br /><br />this.currentposition = this.dataGridView1.BindingContext <br />[this.dataGridView1.DataSource, this.dataGridView1.DataMember].Position; <br />bookContent = this.database.dataSet.Tables[0].Rows <br />[this.转载 2010-07-17 20:30:00 · 307 阅读 · 0 评论 -
浅析编写C#多线程
<br />编写C#多线程应用程序非常得容易,即使对于那些从没有编写C#多线程应用程序的初学者,只需遵循以下这些简单的步骤就可以实现目的。<br />定义名称空间<br />在。NET中,多线程功能是在System.Threading名称空间中定义的。因此,在使用任何线程类之前,必须定义 System.Threading名称空间。定义方法如下:<br />1.using System.Threading; <br />启动线程<br />System.threading名称空间中的Thr原创 2010-07-17 20:39:00 · 271 阅读 · 0 评论 -
C# 面向对象的基本原则
<br /> 什么是面向对象的基本原则?设计原则是基本的工具,应用这些规则可以使你的代码更加灵活、更容易维护,更容易扩展。 <br /> C#面向对象的基本原则 <br />一、面向接口编成而不是实现 [Code to an interface rather than to an implementation.] <br />二、优先使用组合而非继承 [Favor Composition Over Inheritance.] <br />三、SRP: The single responsibili转载 2010-07-21 13:29:00 · 269 阅读 · 0 评论