摘要:------------------------------------------------------------------------------ The contents of this file are subject to the nopCommerce Public License Version 1.0 ("License"); you may not use this f...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HackMoney { public class JsonHelper { /// /// 转换对象为JSON格式数据 /// ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Text; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Reflection; namespace {namespace}.DBUtilit...
阅读全文
摘要:引言本文主要是介绍进程(Process)、应用程序域(AppDomain)、.NET上下文(Context)的概念与操作。虽然在一般的开发当中这三者并不常用,但熟悉三者的关系,深入了解其作用,对提高系统的性能有莫大的帮助。在本篇最后的一节当中将会介绍到三者与线程之间的关系,希望对多线程开发人员能提供一定的帮助。因为时间仓促,文中有错误的地方敬请点评。目录一、进程的概念与作用二、应用程序域三、深入了解.NET上下文四、进程应用程序域与线程的关系一、进程的概念与作用进程(Process)是Windows系统中的一个基本概念,它包含着一个运行程序所需要的资源。进程之间是相对独立的,一个进程无法访问另
阅读全文
摘要:泛型可以使代码重用率提高泛型需要编译器解决类型安全并降低装箱拆箱引发的性能损耗泛型给编译器带来的问题:约束约束分为:1.一般约束T Find(K key){ Node current = m_Head; while(current.NextNode != null) { if(current.Key == key) //编译将不能通过 break; else current = current.NextNode; } return current.Item; }以上编译错误是因为编译器无法保证Key类中包含==操作而引发若要避免可将代码加上约束where 关键字,此关键字等于...
阅读全文