2013年4月23日
摘要: public static void Raise<T>(this EventHandler<T> handler, object sender, T args) where T : EventArgs{ if (handler != null) { handler(sender, args); }}public static void Raise(this EventHandler handler, object sender, EventArgs args){ if (handler != null)... 阅读全文
posted @ 2013-04-23 09:11 武胜-阿伟 阅读(180) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace CalmBeltFund.Trading.CTPStock{ internal class PInvokeUtility { static Encoding encodingGB2312 = Encoding.GetEncoding(936); public static string GetUnicodeString(byte[] str... 阅读全文
posted @ 2013-04-23 08:32 武胜-阿伟 阅读(133) 评论(0) 推荐(0) 编辑