反射帮助类 using System; using System.Reflection; using System.Data; using System.Drawing; using System.Resources; using System.ComponentModel; using System.Text; using System.IO; namespace Core.Common { /// <summary> /// 反射辅助类 /// </summary> publi…
Collection类及常用API Collection—类集工具类,定义了若干用于类集和映射的算法,这些算法被定义为静态方法,具体查看api文档; a) public static void sort(List<T> liet) b) public static int binarySearch(List<T> list,T key) c) public static void reverse(List<?> list) d) public static vo…
命名空间 避免类名重复,而产生错误. <?php require_once "useful/Outputter.php"; class Outputter { // output data private $name; public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } } $obj = new Outputt…