摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Text; 7 using System.Windows.Forms; 8 using System.Collections.Specialized; 9 namespace HuffmanCode 10 { 11 public partial class Form1 : Form 1... 阅读全文
摘要:
场景有2个类 class A { public EventHandler TestEventHandler; } class B { public string Name { get; set; } public void Test(object o, EventArgs e) { Console.WriteLine(Name+"say:我依然活着。。。"); //do somethings } } class Program { ... 阅读全文
摘要:
4.0版public static T Execute<T>(Func<T> func, int timeout){ T result; TryExecute(func, timeout, out result); return result;}public static bool TryExecute<T>(Func<T> func, int timeout, out T result){ var t = default(T); var thread = new Thread(() => t = func()); thread.Start 阅读全文
摘要:
场景1:statement = "SELECT * FROM users WHERE name = '" + userName + "';"通过对username赋于:' or '1'='1' or '1'='1' -- ' //注释掉后面的sql语句' or '1'='1' ({ '' or '1'='1' /* '生成的sql语句如下:SELECT * FROM 阅读全文