摘要: 在桌面创建一个记事本文件,然后吧这句话复制进去for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn" 然后保存,再把记事本文件重命名 叫 删除SVN信息.bat ,这时候要注意后缀名不是txt而是bat 了,然后双击这个批处理文... 阅读全文
posted @ 2014-06-18 12:08 pnljs 阅读(936) 评论(0) 推荐(0) 编辑
摘要: 经常看到 Func...这样的写法,看到这样的就没有心思看下去了。我们学技术还是需要静下心来。对Func的Func转到定义看它的解释: // 摘要: // 封装一个具有一个参数并返回 TResult 参数指定的类型值的方法。 // // 参数: // arg... 阅读全文
posted @ 2014-06-17 11:20 pnljs 阅读(38127) 评论(9) 推荐(14) 编辑
摘要: 代码如下//使用说明//1,新加接口与类//2,新加类并实现ICallHandler类: ExecuteHandler//3,新建特性并实现HandlerAttribute和重写其中的CreateHandler方法:ExecuteAttribute//4,在接口上使用ExecuteAttribute... 阅读全文
posted @ 2014-06-16 18:00 pnljs 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 右键单击一个服务在浏览器中打开时,通常会有这么一段话:ServiceDemo 服务已创建服务。若要测试此服务,需要创建一个客户端,并将其用于调用该服务。可以使用下列语法,从命令行中使用 svcutil.exe 工具来进行此操作:svcutil.exe http://localhost:6054/Se... 阅读全文
posted @ 2014-06-03 15:44 pnljs 阅读(13937) 评论(3) 推荐(2) 编辑
摘要: http://blog.csdn.net/ninibinbin/article/details/3445936[ { "Id": "A", "Name": "A", "Nodes": { "Id": "A01", ... 阅读全文
posted @ 2014-06-01 10:31 pnljs 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 这两个方法主要是让给出的方法在控件创建的线程上执行凡是使用BeginInvoke和Invoke调用的线程都是在UI主线程中执行的 阅读全文
posted @ 2014-05-30 17:48 pnljs 阅读(216) 评论(0) 推荐(0) 编辑
摘要: this.textBox1.Select(this.txtMsgInfo.TextLength, 0); this.textBox1.ScrollToCaret(); 阅读全文
posted @ 2014-05-22 19:24 pnljs 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: 当textbox为多行时,获取它的行数:int count = this.txtMsgInfo.Lines.GetUpperBound(0); 阅读全文
posted @ 2014-05-22 19:23 pnljs 阅读(6499) 评论(0) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Net.Ma... 阅读全文
posted @ 2014-05-22 13:18 pnljs 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 主要用Skip和Take这两个方法Skip(int count)跳过序列中指定数量的元素,然后返回剩余的元素Take(int count)从序列的开头返回指定数量的连续元素。所以分页可以这样写:string[] Array = { "Hjiang", "Hwang", "Wange", "Hwan"... 阅读全文
posted @ 2014-05-18 21:26 pnljs 阅读(303) 评论(0) 推荐(0) 编辑