
C#
文章平均质量分 60
天高愉悦
开源TCP/UDP全栈框架
https://www.github.com/szyhf/DIServer
展开
-
c#中用LumiSoft类库实现IMAP4接收…
发现下载回来的lumisoft组件版本好像比较新,把网上见到的代码用的函数都否决了。。 囧。。研究了半天,改了一点东西出来。 以下代码非完整程序代码,只是一些片段的截取和说明=_= using LumiSoft . Net . IMAP . Client; using LumiSoft.Net.IMAP; static void Main ( ){ IMAP_Client IMAPSe原创 2016-03-20 22:24:49 · 2966 阅读 · 1 评论 -
C#用Jamil类库通过pop3协议收邮件
ps:找了半天才找到个专业版的,免费版是没有pop3协议的哦。 POP3Class pop3 = new POP3Class ( ); pop3 . Connect ( @"sdjoij@123.cn" , @"******" , "pop.123.cn",110 ); pop3 . DownloadMessages ( ); var mails = pop3 . M原创 2016-03-20 22:24:51 · 357 阅读 · 0 评论 -
c#在windows form开发时多线程对UI…
windows form开发的时候,如果使用了多线程,则新线程无法实现对原有控件的操作。 解决方案可以是: 利用form对象自带的BeginInvoke方法,实例代码 this . BeginInvoke ( new MethodInvoker ( delegate ( ) { this . Cursor = Cursors . WaitCursor; listView收件箱 . Items .原创 2016-03-20 22:24:53 · 1034 阅读 · 0 评论 -
山寨控制台
using System; using System . Text; using System . IO; using System . Collections; namespace CMD { class Program { static void Main ( string [ ] args ) { Console . Title = @"山寨版:C:\Window\syst原创 2016-03-20 22:26:19 · 281 阅读 · 0 评论 -
利用资源文件解决动态链接库地狱的…
因为使用了太多第三方类库导致dll文件成吨,管理上出现了很多麻烦。 参考资料:http://wenku.baidu.com/link?url=d6Xp7Q9f9daFoQyWzbv5DViOKCgMpYWKH0Mw_PRz6AuybKYLawh3dl6qW7Zi22Ax2LOpXnGJbnHBTU-FfHC8hw3BtvN1dM-3wL0WNf2-v9m http://www.jb51.net原创 2016-03-20 22:26:24 · 651 阅读 · 0 评论 -
RingBuffer
////// 变长的RingBuffer///private class RingBuffer{byte[] _buffer;int _read;int _write;int _count;//有效数据长度////// 缓存区总长度//////protected int length{get{lock ( this . _buffer . SyncRoot ){return this . _buff原创 2016-03-20 22:57:21 · 735 阅读 · 0 评论