上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: copy /b xxx.jpg + yyy.txt zzz.jpg /b 二进制 /a 文本 阅读全文
posted @ 2017-05-05 17:11 hi..... 阅读(129) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/arxive/p/6080085.html 应该有很多人都在寻找这方面的资料,看看下面我做的,或许对你会有所帮助,但愿如此。 为了实现橡皮筋技术,我用了两种方法: 第一种是利用ControlPaint.DrawReversibleLine(Point s 阅读全文
posted @ 2017-05-05 15:51 hi..... 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 码是这样的,这里我们增一个扩展方法,这样使我们的代码更加简洁,您会在后面的Unit Test中看到: 1: public interface ITestObject 2: { 3: int Div(int num1, int num2); 4: } 5: 6: public class TestOb 阅读全文
posted @ 2017-05-04 14:30 hi..... 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 而且它使用非常方便,只需要关注下面两个方法即可: 1. Send:发送界面更新请求至主线程,阻塞当前线程直至返回。 2. Post:发送界面更新请求至主线程,不阻塞当前线程。 实际上,他们都是同一个方法,只是 send 是同步,post 是异步 这是一个很简单的例子,也许看过的人都会说:根本就没有摆 阅读全文
posted @ 2017-05-03 16:40 hi..... 阅读(247) 评论(0) 推荐(0) 编辑
摘要: WebHttpBinding bd = new WebHttpBinding(); //WebServiceHost sh = new WebServiceHost(typeof(Bl_x), new Uri("http://localhost/xxii")); //ServiceHost sh = new ServiceHost(typeo... 阅读全文
posted @ 2017-05-02 17:03 hi..... 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 如何开启WebApi里面的Session,请参考:http://www.cnblogs.com/tinya/p/4563641.html 正如上面的原理部分说的,登录如果失败,则直接返回;如果成功,则将生成的票据Ticket带到前端,传到主界面/Home/Index,下面,我们就来看看主界面Home 阅读全文
posted @ 2017-05-02 16:23 hi..... 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 到上篇文章的代码清单9-7,重新对StrongNameReferenceLib项目进行强名称签名,然后编译StrongName项目。在StrongName项目的bin目录里有StrongNam.exe和StrongNameReferenceLib.dll两个文件,然后使用ILDasm打开Strong 阅读全文
posted @ 2017-04-28 16:09 hi..... 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 1、格式化货币(跟系统的环境有关,中文系统默认格式化人民币,英文系统格式化美元) string.Format("{0:C}",0.2) 结果为:¥0.20 (英文操作系统结果:$0.20) 默认格式化小数点后面保留两位小数,如果需要保留一位或者更多,可以指定位数string.Format("{0:C 阅读全文
posted @ 2017-04-28 13:40 hi..... 阅读(249) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.ObjectModel; using System.Reflection; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.Service... 阅读全文
posted @ 2017-04-27 16:44 hi..... 阅读(539) 评论(0) 推荐(0) 编辑
摘要: [ServiceBehavior(IncludeExceptionDetailInFaults = true)][WCF_ExceptionBehaviour(typeof(WCF_ExceptionHandler))]public class AccountModuleService : IAcc 阅读全文
posted @ 2017-04-27 11:41 hi..... 阅读(231) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页