12 2018 档案

摘要:1 class Program 2 { 3 static BlockingCollection cols = new BlockingCollection(2); //设置阻塞队列最大的容量; 4 public static void Main(string[] args) 5 { 6 7 ... 阅读全文
posted @ 2018-12-29 11:22 我是外婆 阅读(1496) 评论(0) 推荐(0)
摘要:namespace console_class_继承 { class Program { public static void Main(string[] args) { Dog d = new Dog(); d.run(); ... 阅读全文
posted @ 2018-12-28 09:52 我是外婆 阅读(431) 评论(0) 推荐(0)
摘要:using System; using System.Reflection; namespace console_attribute { class Program { public static void Main(string[] args) { Type t = typeof(Books); ... 阅读全文
posted @ 2018-12-25 10:55 我是外婆 阅读(142) 评论(0) 推荐(0)
摘要:class Program { static void Main(string[] args) { //通过使用$符号初始化一个字符串,可以在字符串中使用占位符来引用变量 int a = 123; Console.WriteLine($"this value... 阅读全文
posted @ 2018-12-11 15:45 我是外婆 阅读(3193) 评论(0) 推荐(0)