2017年12月28日

用于深拷贝的扩展方法 C#

摘要: using System.Runtime.Serialization.Formatters.Binary; using System.IO; public static class Tool { public static T DeepCopy(this T obj) { BinaryFormatter formatter... 阅读全文

posted @ 2017-12-28 13:43 方辰 阅读(140) 评论(0) 推荐(0)

实现泛型数组的冒泡排序算法 C#

摘要: public static class BubbleSortTool { public static void BubbleSort(this T[] array, AscendingorDescending ascendingorDescending) where T:IComparable { switch (ascending... 阅读全文

posted @ 2017-12-28 13:32 方辰 阅读(495) 评论(0) 推荐(0)

导航