摘要:
1 /// <summary>自定义包含指定字符的base64工具</summary> 2 internal static class Base64Helper 3 { 4 static readonly string base64Table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"; 5 static readonly int[] base64Index = new int[] 6 { 7 ... 阅读全文
摘要:
Y=(A+B)'=A'*B' Y=(A*B)'=A'+B' Y=AB+BC=(A+C)*B 等等,例子:if((A&&B)||(B&&C))=if((A||C)&&B) 阅读全文
摘要:
1 public class Map<TKey, TValue> 2 { 3 int listindex = 0; 4 5 const int HASHSIZE = 100;//容量最大100 6 Entry[] entries = new Entry[HASHSIZE]; 7 int[] buckets = new int[HASHSIZE]; 8 public Map() 9 {10 for (int i = 0; i < HASHSIZE; i++)... 阅读全文
摘要:
using System;using System.Drawing;using System.Windows.Forms;namespace MyGame{ public delegate void KillWoodEventHandler(); public interface IGameBo { int[,] Grids { get; } int XPos { get; } int YPos { get; } } public interface IGameBiz { void Run(); ... 阅读全文
摘要:
//方式一,写交替死锁,Test1,Test2不会被输出using System.Threading;using System;public static class Program{ static object obj1 = new object(); static object obj2 = new object(); static void Main() { Thread thread1 = new Thread(Test1); Thread thread2 = new Thread(Test2); thread1.Sta... 阅读全文