摘要:
public void nums() { ArrayList list = new ArrayList(); Random r = new Random(); list.Add(r.Next(20)); while (true) { if (list.Count == 20) break; int 阅读全文
posted @ 2023-07-13 18:13
阿霖找BUG
阅读(20)
评论(0)
推荐(0)
摘要:
子类继承父类,重写父类,在子类中调用父类被覆盖的方法。 public class Person { public virtual void GetInfo()//要标明是什么函数;virtual虚函数 { Console.WriteLine("qqqqqqqe"); } } class Employ 阅读全文
posted @ 2023-07-13 14:48
阿霖找BUG
阅读(26)
评论(0)
推荐(0)
摘要:
Action无返回值 Action<string> greet = name =>//无返回值所以Action<输入类型> { string greeting = $"Hello {name}!"; Console.WriteLine(greeting); }; greet("World");//调 阅读全文
posted @ 2023-07-13 11:00
阿霖找BUG
阅读(11)
评论(0)
推荐(0)
浙公网安备 33010602011771号