随笔分类 -  C#

c#
摘要:1 public void Test(){2 3 var query = from a in A join b in B on A.Id equals B.Id into c4 from d in c.DefaultIfEmpty()5 ... 阅读全文
posted @ 2014-07-12 16:42 b̶i̶n̶g̶.̶ 阅读(284) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Threading; 3 using System.Windows; 4 using System.Windows.Controls; 5 using WangCai.Common; 6 7 namespace Wang... 阅读全文
posted @ 2014-07-07 18:59 b̶i̶n̶g̶.̶ 阅读(1157) 评论(0) 推荐(0)
摘要:private const int INTERNET_CONNECTION_MODEM = 1; private const int INTERNET_CONNECTION_LAN = 2; private const int INTERNET_CONNE... 阅读全文
posted @ 2014-07-07 18:57 b̶i̶n̶g̶.̶ 阅读(1492) 评论(0) 推荐(0)
摘要:1 #region 打开键盘的键 2 const uint KEYEVENTF_EXTENDEDKEY = 0x1; 3 const uint KEYEVENTF_KEYUP = 0x2; 4 5 [DllImport("user3... 阅读全文
posted @ 2014-07-07 11:21 b̶i̶n̶g̶.̶ 阅读(446) 评论(0) 推荐(0)
摘要:[DllImport("user32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); public static long GetIdleTick() {... 阅读全文
posted @ 2014-07-03 11:29 b̶i̶n̶g̶.̶ 阅读(387) 评论(0) 推荐(0)
摘要:.NET技术交流群 199281001 .欢迎加入。 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows; ... 阅读全文
posted @ 2014-07-03 10:52 b̶i̶n̶g̶.̶ 阅读(1106) 评论(1) 推荐(0)
摘要:.NET技术交流群 199281001 .欢迎加入。using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Remoting.Metadata.W3cXsd2001; using System.Security.Permissions; using System.Text; u... 阅读全文
posted @ 2014-06-30 19:45 b̶i̶n̶g̶.̶ 阅读(1288) 评论(1) 推荐(1)
摘要:List ipList = new List(); foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList) { ... 阅读全文
posted @ 2014-06-27 14:45 b̶i̶n̶g̶.̶ 阅读(711) 评论(0) 推荐(0)
摘要:/// /// 复制或剪切文件到剪切板 /// /// 文件路径数组 /// true:剪切;false:复制 public static void CopyToClipboard(string[] f... 阅读全文
posted @ 2014-06-27 14:43 b̶i̶n̶g̶.̶ 阅读(437) 评论(0) 推荐(0)
摘要:Action a = () => { i += 1; var timer = new System.Timers.Timer(800) { Interval = 600 }; ... 阅读全文
posted @ 2014-06-26 15:14 b̶i̶n̶g̶.̶ 阅读(485) 评论(0) 推荐(0)
摘要:/// /// 设置鼠标的坐标 /// /// 横坐标 /// 纵坐标 [DllImport("User32")] public extern stat... 阅读全文
posted @ 2014-06-26 14:29 b̶i̶n̶g̶.̶ 阅读(630) 评论(0) 推荐(0)
摘要:1 user32.dll中的所有函数 2 3 4 5 6 using System; 7 using System.Collections.Generic; 8 using System.Linq; 9 using System.Text; ... 阅读全文
posted @ 2014-06-26 10:56 b̶i̶n̶g̶.̶ 阅读(360) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.IO; 3 using System.Net; 4 using System.Text; 5 using System.Web.Script.Serialization; 6 7 namespace IpUtils 8 { 9 ... 阅读全文
posted @ 2014-06-26 10:53 b̶i̶n̶g̶.̶ 阅读(673) 评论(0) 推荐(0)
摘要:1 //开启线程加载 2 Action a = () => 3 { 4 var row = 7; 5 var column = 9; 6 7 var p... 阅读全文
posted @ 2014-06-26 10:43 b̶i̶n̶g̶.̶ 阅读(1026) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.IO; 3 using System.Collections.Generic; 4 using System.Windows; 5 using System.Windows.Controls; 6 using System.... 阅读全文
posted @ 2014-06-26 10:42 b̶i̶n̶g̶.̶ 阅读(378) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Common 7 { 8 //Author:GaoBin... 阅读全文
posted @ 2014-06-26 10:37 b̶i̶n̶g̶.̶ 阅读(579) 评论(0) 推荐(0)
摘要:.NET技术交流群 199281001 .欢迎加入。1.配置类1 public class Log4NetConfig2 {3 public static string SqlServer = "ADONetAppender_SqlServer";4 public static st... 阅读全文
posted @ 2014-06-26 10:23 b̶i̶n̶g̶.̶ 阅读(290) 评论(0) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Runtime.InteropServices; 5 using System.Text; 6 using S... 阅读全文
posted @ 2014-06-26 10:19 b̶i̶n̶g̶.̶ 阅读(860) 评论(0) 推荐(0)
摘要:.NET技术交流群 199281001 .欢迎加入。 1 //自定义窗体拉伸 2 3 public HwndSource _HwndkaifaSource; 4 private const int WM_SYSCOMMAND = 0x112; 5 ... 阅读全文
posted @ 2014-06-26 10:14 b̶i̶n̶g̶.̶ 阅读(1623) 评论(3) 推荐(0)
摘要:直接上代码。 Point brp = SystemParameters.WorkArea.BottomRight;//当前桌面右下角的位置 阅读全文
posted @ 2014-06-26 10:10 b̶i̶n̶g̶.̶ 阅读(273) 评论(0) 推荐(0)