上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1 认识WebService 在 3,5 中新建一个服务应用程序 1 在asmx中 /// /// Service1 的摘要说明 /// [WebService(Namespace = "http://tempuri.org/")] //标注web服务器的命名空间,... 阅读全文
posted @ 2015-07-07 21:31 陌念 阅读(270) 评论(0) 推荐(0)
摘要: hei 70 t 是一个线程//这句话(t.Join();)在那个线程中执行,那么就阻塞了那个线程,那个线程要等待t线程执行完毕后,然后才会继续。 t.Join();//阻塞当前"主线程",等待t线程执行完毕后,继续主线程的执行。 t.Joi... 阅读全文
posted @ 2015-07-03 14:41 陌念 阅读(184) 评论(0) 推荐(0)
摘要: 1 委托 存放函数安全指针2 步骤 /// /// 定义委托类型 /// public delegate void DGSayHi(string name); /// /// 生明委托变量 /// ... 阅读全文
posted @ 2015-07-03 14:40 陌念 阅读(142) 评论(0) 推荐(0)
摘要: 1给一个方法添加过时的信息的时候 可以 [Obsolete("方法以及过时,请使用更好的算法EatNice()")] public string Eat() { return "吧唧吧唧的吃"; }编译一下就可以,下次... 阅读全文
posted @ 2015-07-03 14:39 陌念 阅读(176) 评论(0) 推荐(0)
摘要: 1约束 /// /// 1.0 基类约束 ,约束成了T必须传入Pig本身或者其子类 /// /// public class PigHouse where T : Pig { /// /// 泛型方法使用的类型占位符使用的是泛型类中的... 阅读全文
posted @ 2015-07-03 14:38 陌念 阅读(165) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace RedisCall{ using ServiceSt... 阅读全文
posted @ 2015-06-22 18:53 陌念 阅读(731) 评论(0) 推荐(0)
摘要: #region 1.0 单例类的写法 private static readonly MessageMgr _instance; static MessageMgr() { _instance = new MessageMgr(); } pri... 阅读全文
posted @ 2015-06-22 14:43 陌念 阅读(123) 评论(0) 推荐(0)
摘要: private void button1_Click(object sender, EventArgs e) { //1.0 string str = "server=.;database=test;uid=sa;pwd=m... 阅读全文
posted @ 2015-06-22 14:19 陌念 阅读(269) 评论(0) 推荐(0)
摘要: 1配置文件中 ... 阅读全文
posted @ 2015-06-22 14:17 陌念 阅读(241) 评论(0) 推荐(0)
摘要: 1 命名空间 using Model; using Model.ModelViews; using AutoMapper;2 生成类 partial class : DbContext可以改成我们自己需要的public static class EntityMapper3 构造函数publi... 阅读全文
posted @ 2015-05-01 14:44 陌念 阅读(429) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页