随笔分类 - C# Library
摘要:这是一种测试计划的替代方法。 ACC的指导原则如下: 1。 避免散漫的文字,推荐使用简明的列表。并不是所有的测试人员都想当小说家,也不具备将一个产品的目标或测试需求表达成散文的技能。 2。不必推销。测试计划不是营销方案,既不是要讨论一个产品满足了多么重要的市场定位,也不是讨论这个产品有多么酷的功能。
阅读全文
摘要:public class CustomWnd : System.Windows.Window { static CustomWnd() { DefaultStyleKeyProperty.OverrideMetadata(typeof(CustomWnd), new FrameworkPropertyMetadata(typeof(...
阅读全文
摘要:public static int GetRandom(int pMinVal = 0, int pMaxVal = int.MaxValue) { int m = pMaxVal - pMinVal; int rnd = int.MinValue; decimal _base = (decimal)long...
阅读全文
摘要:public static List FindVisualChild(DependencyObject obj) where T : DependencyObject { try { List TList = new List { }; for (int i = 0; ...
阅读全文
摘要:public interface IPublisher { void Publish(T data); void Subscribe(object subscriber, Action pHandler); void Unsubscribe(object subscriber); void Unsubscribe(o...
阅读全文
摘要:internal struct CachedTypeInfo { public Type Type; public bool IsSingleton; } internal class ConstructorCache { private static ConcurrentDictionary _constructor...
阅读全文
摘要:.loadby SOS clr .Symfix .reload !threads !printexception [address]
阅读全文
摘要:var currentDir = Directory.GetCurrentDirectory(); var filePath = string.Format("{0}\\Auto.bat", currentDir); if (File.Exists(filePath)) File.Delete(fi
阅读全文
摘要:使用.NET建立的可执行程序 *.exe,并没有直接承载到进程当中,而是承载到应用程序域(AppDomain)当中。应用程序域是.NET引入的一个新概念,它比进程所占用的资源要少,可以被看作是一个轻量级的进程。在一个进程中可以包含多个应用程序域,一个应用程序域可以装载一个可执行程序(*.exe)或者...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Runtime.InteropServices;using System.Text;using ...
阅读全文
摘要:public static string[] ExtractTablesFromSQL(string cmdString){return Regex.Matches(cmdString, @"(?().Select(m => m.Groups[0].Value.Trim()).ToArray();}
阅读全文
摘要:1 /// <summary> 2 /// TODO: Elegant 3 /// </summary> 4 /// <typeparam name="TInstance"></typeparam> 5 /// <typeparam name="TContract"></typeparam> 6 public class ClientChannel<TInstance, TContract> 7 where TInstance : ClientBase<TContr
阅读全文