摘要:
class Program { static void Main(string[] args) { //持有接口的引用 List<speak> lists = new List<speak>(); test te = new test() { user = new user() { name = "sa123", pwd = "123456" } }; lists.Add(te); test te2 = new test() { user = new... 阅读全文
摘要:
class Program { static void Main(string[] args) { List<string> ss = new List<string>(); ss.Add("a"); ss.Add("b"); ss.Add("c"); ss.Add("d"); ss.Add("e"); ss.Add("f"); ss.Add("g"); ss.Ad... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ReflectCallPrivateMethod{ class Program { static void Main(string[] args) { BasePage pb = new BasePage(); Type ty = pb.GetType(); System.Reflection.MethodI... 阅读全文