![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
lyso2008
这个作者很懒,什么都没留下…
展开
-
How to define deadlock for SQLServer?
//Todo: Finish the codes.原创 2011-12-20 00:15:10 · 297 阅读 · 0 评论 -
System.TypeLoadException Error Analyze
System.TypeLoadException 是因为未能从指定程序集中加载类型, 一般是可能由以下几种情况导致:1. 当公共语言运行库无法找到程序集内的类型或者无法加载类型时引发。一般是程序集内无该类型的定义或者类型的命名空间变了。2. 程序集内确实有该类型,但是在程序集之间相互引用时由于某些原因,导致该类型不被包括在原本的程序集内。例如,A程序集引用B程序集,但是A标记为[ass原创 2011-12-15 23:53:54 · 1066 阅读 · 0 评论 -
CLR call Virtual Methods
CLR via C# has following rules:The callvirt IL instruction can be used to call instance and virtual methods, not static methods. When the callvirt instruction is used to call an instance or virtual原创 2012-02-06 23:17:12 · 336 阅读 · 0 评论 -
C#-value type array allocated on managed Heap.
Value type array allocate1. Define local variable as value type array(e.g. int[] testAry = new int[100]),CLR creates it as following:1. Create a variable testAry on Stack.2. Allocated mem原创 2012-02-24 00:29:59 · 311 阅读 · 0 评论 -
Check CLR version.
How to check CLR version on machine?1. ClrVer.exe原创 2012-02-27 23:02:49 · 288 阅读 · 0 评论 -
How to disable network?
How to disable network?var wmiQuery = new SelectQuery("SELECT * FROM Win32_NetworkAdapter " + "WHERE NetConnectionId != null " + "AND Manufacturer != 'Mic转载 2012-02-29 00:08:56 · 489 阅读 · 0 评论 -
Uses serialization to make a deep copy
private static Object DeepClone(Object original) { // Construct a temporary memory stream using (MemoryStream stream = new MemoryStream()) {转载 2012-03-04 22:53:05 · 188 阅读 · 0 评论 -
Parallel's foreach method
1. The simple example of Parallel's foreach method: public static int ParallelTestMethod1() { int[] testIntAry = { 2, 5, 6, 7, 8, 9 }; int sum = 0;原创 2012-03-06 23:01:41 · 314 阅读 · 0 评论