摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Runtime.Serialization.Formatters.Binary; 6 using System.IO; 7 8 namespace _07对象序列化 9 { 10 class Program 11 { 12 static void Main(string[] args) 13 { 14 ... 阅读全文
摘要:
1 using System; 2 using System.IO; 3 4 [, using System; 5 using System.Collections.Generic; 6 using System.Linq; 7 using System.Text; 8 using System.IO; 9 10 namespace _07文件操作1_Path类11 {12 class Program13 {14 static void Main(string[] args)15 {16 //Path类中方法,基本都是... 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Collections; 6 7 namespace _06为什么有些类可以使用foreach循环遍历 8 { 9 class Program 10 { 11 static void Main(string[] args) 12 { 13 //ArrayList arrList1 = n... 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace _03泛型约束 7 { 8 9 class Student10 {11 12 }13 class Program14 {15 static void Main(string[] args)16 {17 Person p1 = new Person();18 ... 阅读全文
摘要:
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace _03弱引用 7 { 8 class Program 9 {10 static void Main(string[] args)11 {12 //Person p = new Person();13 //p.Age = 100;14 //p = null;15... 阅读全文