摘要: ReaderWriterLockSlim 类 表示用于管理资源访问的锁定状态,可实现多线程读取或进行独占式写入访问。 使用 ReaderWriterLockSlim 来保护由多个线程读取但每次只采用一个线程写入的资源。 ReaderWriterLockSlim 允许多个线程均处于读取模式,允许一个线 阅读全文
posted @ 2016-11-08 21:07 金融之王 阅读(833) 评论(0) 推荐(0) 编辑
摘要: class MessageReceiver { private RelayEngine _MessageRelayEngine; private string _Hostname; private int _MessageDispatchServerPort; private string _SessionId; ... 阅读全文
posted @ 2016-11-06 22:30 金融之王 阅读(461) 评论(0) 推荐(0) 编辑
摘要: using Manager.Common; using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace ExchangeManager.WCF { public class MessageClient ... 阅读全文
posted @ 2016-11-06 22:25 金融之王 阅读(555) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 服务端: /// </summary> /// <param name="FileName">更新文件包名</param> /// <param name="Offset">偏移</param> /// <param name="Count">每次读取字节数 单位 阅读全文
posted @ 2016-10-31 21:08 金融之王 阅读(149) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Diagnostics; namespace Mana 阅读全文
posted @ 2016-10-24 22:24 金融之王 阅读(118) 评论(0) 推荐(0) 编辑
摘要: using ServiceStack.Redis;using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading; namespace FeigeRedi 阅读全文
posted @ 2016-09-19 23:11 金融之王 阅读(267) 评论(0) 推荐(0) 编辑
摘要: Semaphore 阅读全文
posted @ 2016-09-09 07:41 金融之王 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1、上市公司负债一般不能够超过12%。 阅读全文
posted @ 2016-06-19 12:15 金融之王 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 修饰符:隐藏基类中的成员(是基类中的成员,所以字段、属性、事件等等都可以隐藏,不单单是方法哦) 这段代码中有一个错误:VS会提示 为了能使子类使用WriteName这个方法,就得用new关键字来隐藏父类中的方法,也可以说是我们新建了一个WriteName方法,这种用法一般在写第三方插件的时候用得较多 阅读全文
posted @ 2016-06-16 22:31 金融之王 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 谈到装箱拆箱,DebugLZQ相信给位园子里的博友一定可以娓娓道来,大概的意思就是值类型和引用类型的相互转换呗 值类型到引用类型叫装箱,反之则叫拆箱。这当然没有问题,可是你只知道这么多,那么DebugLZQ建议你花点时间看看楼主这篇文章,继续前几篇博文的风格--浅谈杂侃。 1. .NET中的类型 为 阅读全文
posted @ 2016-06-16 22:15 金融之王 阅读(241) 评论(0) 推荐(0) 编辑