摘要:
class Program { static void Main(string[] args) { Stream s = new MemoryStream(); for (int i = 0; i < 500; i++) { s.WriteByte((byte)i); } s.Position = 阅读全文
摘要:
1、简单的说,虚方法就是可以被子类重写的方法,如果子类重写了虚方法,那么运行时将使用重写后的逻辑,如果没有重写,则使用父类中虚方法的逻辑 class Program { static void Main(string[] args) { Person per = new Person(); Poli 阅读全文