Person p=teacher as person;
If (p!=null ) dostring ();
使用这样的方法效率高
使用 is时 进行两次判断效率低
转载于:https://www.cnblogs.com/garrett/p/5547814.html
Person p=teacher as person;
If (p!=null ) dostring ();
使用这样的方法效率高
使用 is时 进行两次判断效率低
转载于:https://www.cnblogs.com/garrett/p/5547814.html