using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace G2.Utils { /// <summary> /// 字典帮助类 /// </summary> public static class DictionaryHelper { //
第6章 扩展类与继承 面向对象编程的一个重要特性: 允许基于已定义的类创建新的类; 6.1 使用已有的类 派生 derivation, 派生类 derived class, 直接子类 direct subclass; 基类 base class, 超类 super class; 1 2 3 4 5 6 class Dog { // Members of the Dog class... } class Spaniel extends Dog { // Members of the Spa
本文提供一个操作Xml树的扩展类,与将xml字符串直接映射成实体对象的使用方法,供大家参考,学习. 下面附上源码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Reflection; using System.ComponentModel; using System.Web.UI.Web