上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: Dictionary<TKey, TValue> 泛型类提供了从一组键到一组值的映射。通过键来检索值的速度是非常快的,接近于 O(1),这是因为 Dictionary<TKey, TValue> 类是作为一个哈希表来实现的。检索速度取决于为 TKey 指定的类型的哈希算法的质量。TValue可以是值 阅读全文
posted @ 2019-04-16 15:15 liliyou 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 带泛型约束的使用方式 不带泛型约束的使用方式: 阅读全文
posted @ 2019-04-16 13:26 liliyou 阅读(115) 评论(0) 推荐(0) 编辑
摘要: ArrayList 数组集合 (4)Add、AddRange、Remove、RemoveAt、RemoveRange、Insert、InsertRange<!--more--> 这几个方法比较类似Add方法用于添加一个元素到当前列表的末尾AddRange方法用于添加一批元素到当前列表的末尾Remov 阅读全文
posted @ 2019-04-13 12:12 liliyou 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 隐式类型转换 using System; namespace App{ class MyClass{ public static void Main(string[] args){ char a='A'; int b=a; Console.WriteLine(b);//65 Console.Writ 阅读全文
posted @ 2019-04-13 09:40 liliyou 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 1,数组的声明: int arr[]; 2,数组的初始化 有四种方式 Person [] arr = new Person[] { new Person(), new Person(), }; 类作为数组的元素 //类作为数组的元素 using System; namespace app{ clas 阅读全文
posted @ 2019-04-13 09:30 liliyou 阅读(85) 评论(0) 推荐(0) 编辑
摘要: protected 受保护的 类成员的修饰符 在类的内部或者在派生类中访问,不管该类和派生类是不是在同一程序集中x 1protected 受保护的 类成员的修饰符 在类的内部或者在派生类中访问,不管该类和派生类是不是在同一程序集中using System; namespace app { class App { public ... 阅读全文
posted @ 2019-04-12 16:43 liliyou 阅读(211) 评论(0) 推荐(0) 编辑
摘要: using System; namespace app{ class MyClass{ public static void Main(string[] args){ B b= new B(); A a= new A(); Console.WriteLine(a.a(13)); ... 阅读全文
posted @ 2019-04-10 16:53 liliyou 阅读(114) 评论(0) 推荐(0) 编辑
摘要: using System; namespace app{ class MyClass{ public static void Main(string[] args){ MyClass my = new MyClass(); Console.WriteLine(my.Calc(4)); } int... 阅读全文
posted @ 2019-04-09 22:04 liliyou 阅读(90) 评论(0) 推荐(0) 编辑
摘要: ALTER TABLE tb ADD unique (name); 阅读全文
posted @ 2019-03-05 18:00 liliyou 阅读(152) 评论(0) 推荐(0) 编辑
摘要: const os = require('os'); console.log(os.homedir()); console.log(os.hostname()); console.log(os.platform()); console.log(os.release()); console.log(os.type()); console.log(os.userInfo()); console.log... 阅读全文
posted @ 2019-03-05 14:08 liliyou 阅读(108) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页