Googler

两情相悦,又岂在朝朝暮暮。

03 2013 档案

C# WeakEvent
摘要:using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Reflection;using System.Reflection.Emit;using System.Runtime.CompilerServices;using System.Text;namespace Rocky{ internal delegate bool Forwarder(WeakReference weakRef, object sender, EventArgs e... 阅读全文

posted @ 2013-03-29 11:58 RockyLOMO 阅读(474) 评论(0) 推荐(0)

MethodPerformanceMonitor
摘要:/// <summary> /// System.Security.SecurityElement.Escape(); /// </summary> /// <param name="xml"></param> /// <returns></returns> public static string GetSafeXml(string xml) { //s = <You're angle & evil>, ['&<>] return Regex.R 阅读全文

posted @ 2013-03-22 11:57 RockyLOMO 阅读(248) 评论(0) 推荐(0)

Socket 实现HttpClient
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics.Contracts;using System.Collections.Specialized;using System.IO;using System.Net;using System.Net.Sockets;using System.Net.Security;using System.Net.Mime;using System.Reflection;namespace Rocky. 阅读全文

posted @ 2013-03-18 18:54 RockyLOMO 阅读(1835) 评论(1) 推荐(0)

MD5Hash16
摘要:public static string MD5Hash16(string input) { return MD5Hash16(Encoding.UTF8.GetBytes(input)); } public static string MD5Hash16(byte[] input) { var hasher = MD5.Create(); byte[] data = hasher.ComputeHash(input); string ... 阅读全文

posted @ 2013-03-04 10:23 RockyLOMO 阅读(301) 评论(0) 推荐(0)

Emit Method Generator
摘要:View Code using System;using System.Reflection.Emit;namespace Rocky{ /// <summary> /// ForState /// </summary> internal class ForState { private Label beginLabel; private object end; private Label endLabel; private LocalBuilder indexVariable; private... 阅读全文

posted @ 2013-03-01 18:54 RockyLOMO 阅读(476) 评论(1) 推荐(0)

Release Validator
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;namespace Rocky{ /// <summary> /// Release下会忽略此类所有方法 /// </summary> [DebuggerStepThrough] public static class Validator { #region Fields public const string Debu... 阅读全文

posted @ 2013-03-01 17:32 RockyLOMO 阅读(216) 评论(0) 推荐(0)

导航

Apple/苹果笔记本 Mac Air MC968CH/A 行货在保 I5 11寸 超级本