示例#1
0
        public void SupperToChild()
        {
            Childer c = new Childer()
            {
                SName = "父类", CName = "子类"
            };

            SToC(c);
        }
示例#2
0
 public void SupperToChild()
 {
     Childer c = new Childer() {SName = "父类", CName = "子类"};
     SToC(c);
 }
示例#3
0
        private void SToC(Supper s)
        {
            Childer c = (Childer)s;

            Console.WriteLine(c.CName);
        }