- 博客(7)
- 收藏
- 关注
转载 [specflow] using sope to bind class with tag
The following example shows a way to "ignore" executing the scenarios marked with@manual (the SpecFlow tracing will still display the steps, so the manual scenarios can be checked based on the repor
2012-10-05 17:25:51 264
转载 c# 判断系统32位还是64位
判断系统是否是64位的方法有很多。对于C#来说,调用WMI是一种简单易行的方式。我们可以用Win32_Processor类里面的AddressWidth属性来表示系统的位宽。AddressWidth的值受CPU和操作系统的双重影响。具体的值如下面的表格所示: 32bit OS64bit OS32bit CPUAddressWidth = 32
2012-09-18 16:09:21 390
转载 缩放图片
private void ZoomImage(int height, string sourceFilePath) { System.Drawing.Image ResourceImage = System.Drawing.Image.FromFile(sourceFilePath); int width = Convert.T
2012-09-17 16:47:01 171
转载 C#中将DataTable中的某一行复制到另一个新的DataTable
方法一:直接复制一个DataTable,然后清空数据(Column结构还保留),最后再用ImportRow()方法从dt中加入需要的Row; DataTable dt2 = new DataTable(); dt2 = dt.Copy(); dt2.Rows.Clear(); dt2.Imp
2012-09-17 10:30:44 1723
转载 当前方法参数
string str = ""; //取得当前方法命名空间 str +="命名空间名:"+System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Namespace +"\n"; //取得当前方法类全名 包括命名空间 str +="类名:"+System.Ref
2012-09-10 14:53:04 148
转载 Date format
DateTime dt = DateTime.Now; // Label1.Text = dt.ToString();//2005-11-5 13:21:25 // Label2.Text = dt.ToFileTime().ToString();//127756416859912816 // Label3.Text = dt.ToFileTimeUtc().ToSt
2012-09-10 13:57:38 194
转载 c# 发送邮件时贴上图片
MailMessage email = new MailMessage();SmtpClient smtp = new SmtpClient(smtpServer);......1.配置附件//添加附件email.Attachments.Add(new Attachment("C:\\img\\ewen.gif"));//配置附件类型email.Attachment
2012-09-06 15:17:49 466
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人