随笔分类 -  C#

摘要:如果Value是引用,那么在使用Value.Clear()的时候。会清空Value的所有元素,但是不会改变Value的引用 private static void Main() { try { var concu... 阅读全文
posted @ 2015-11-06 17:18 ChuckLu 阅读(1337) 评论(0) 推荐(0) 编辑
摘要:http://www.codeproject.com/Articles/17729/Add-docking-and-floating-support-easely-and-quickl 阅读全文
posted @ 2015-10-22 15:51 ChuckLu 阅读(197) 评论(0) 推荐(0) 编辑
摘要:今天编程的时候,想要用this来处理构造函数,想了半天没有想起来后来找了自己以前记录的http://www.cnblogs.com/chucklu/p/4842766.htmlpublic Cube(int s) { SetSide(s); } public Cube() : ... 阅读全文
posted @ 2015-10-14 09:14 ChuckLu 阅读(384) 评论(0) 推荐(0) 编辑
摘要:Const.MaxLengthOfBufferd的长度固定为0x2000 也就是8192private bool SendMessage(int messageType, string ip, string port, int length, byte[] messageBytes) ... 阅读全文
posted @ 2015-09-30 10:55 ChuckLu 阅读(11276) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/lyl6796910/p/3958768.html 阅读全文
posted @ 2015-09-29 18:40 ChuckLu 阅读(273) 评论(0) 推荐(0) 编辑
摘要:在项目里面新建一个文件夹Dll然后把这个文件夹复制到输出路径在项目的生成事件中,添加生成后的事件,将文件夹中的dll,复制到上一层目录 阅读全文
posted @ 2015-09-29 15:40 ChuckLu 阅读(236) 评论(0) 推荐(0) 编辑
摘要:Console.WriteLine("BitConverter.IsLittleEndian = {0}", BitConverter.IsLittleEndian); Console.WriteLine(); string format... 阅读全文
posted @ 2015-09-23 14:47 ChuckLu 阅读(1393) 评论(0) 推荐(0) 编辑
摘要:(Assuming you're writing in C# here) When an object written in C# is constructed, what happens is that the initializers run in order from the most der 阅读全文
posted @ 2015-09-21 17:37 ChuckLu 阅读(629) 评论(0) 推荐(0) 编辑
摘要:https://msdn.microsoft.com/en-us/library/a1sway8w.aspxThe left-shift operator (<<) shifts its first operand left by the number of bits specified by it... 阅读全文
posted @ 2015-09-18 15:05 ChuckLu 阅读(577) 评论(0) 推荐(0) 编辑
摘要:网络字节顺序NBO(Network Byte Order):按从高到低的顺序存储,在网络上使用统一的网络字节顺序,可以避免兼容性问题。 The order in which the bytes of a multi-byte number are transmitted on a network - 阅读全文
posted @ 2015-09-18 09:44 ChuckLu 阅读(4255) 评论(0) 推荐(0) 编辑
摘要:在触发异常的地方添加一下代码,就会出现英文的异常 Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; Thread.CurrentThread.CurrentUICulture = CultureInfo.Invar... 阅读全文
posted @ 2015-09-17 13:31 ChuckLu 阅读(693) 评论(0) 推荐(0) 编辑
摘要:仅仅针对于IPv4的处理方法从string转换为int以及从int转换为string// IPv4int intAddress = BitConverter.ToInt32(IPAddress.Parse(address).GetAddressBytes(), 0);string ipAddress... 阅读全文
posted @ 2015-09-07 16:29 ChuckLu 阅读(370) 评论(0) 推荐(0) 编辑
摘要:结构用途说明Implements a Windows message.Properties1.public IntPtr HWnd { get; set; }Gets or sets the window handle of the message.System.IntPtrA platform-s... 阅读全文
posted @ 2015-09-07 11:14 ChuckLu 阅读(949) 评论(0) 推荐(0) 编辑
摘要:Control.DefWndProcSends the specified message to the default window procedure.参数说明:m:The WindowsMessageto process.protected virtual void DefWndProc(re... 阅读全文
posted @ 2015-09-07 10:40 ChuckLu 阅读(416) 评论(0) 推荐(0) 编辑
摘要:首先找到了这篇文章http://www.cnblogs.com/haokaibo/archive/2010/07/31/1789342.html然后找到一篇英文的文章http://monsur.xanga.com/2006/02/03/dll-refresh-and-asp-net/The ques... 阅读全文
posted @ 2015-09-06 09:01 ChuckLu 阅读(1184) 评论(0) 推荐(0) 编辑
摘要:之前写的方法,使用try catch来处理如果能捕获异常就说明问题public bool CheckLegal() { double number; bool flag = true; try { ... 阅读全文
posted @ 2015-09-01 17:10 ChuckLu 阅读(1829) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.ObjectModel;using System.Linq;namespace ConsoleApplication1{ class Program { private static void Ma... 阅读全文
posted @ 2015-08-30 16:01 ChuckLu 阅读(4360) 评论(0) 推荐(0) 编辑
摘要:http://stackoverflow.com/questions/4817369/why-does-does-it-really-listt-implement-all-these-interfaces-not-just-ilis 作者针对上面的问题,专门写了一篇文章 http://blogs. 阅读全文
posted @ 2015-08-14 14:37 ChuckLu 阅读(156) 评论(0) 推荐(0) 编辑
摘要:Static Classes and Static Class MembersA static class is basically the same as a non-static class, but there is one difference: a static class cannot ... 阅读全文
posted @ 2015-08-07 09:55 ChuckLu 阅读(260) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/xiashengwang/p/3843197.html 阅读全文
posted @ 2015-08-05 13:57 ChuckLu 阅读(292) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示