阴影和重载是没有的

时间:2017-08-23 08:18:12

标签: vb.net

我有两个班级

  @media (max-width: 769px){
    .aboutsplash {
      overflow: hidden;
    }
  }

然后我想查看是否有人员列表

Class Unit
    Property People As List(Of People)
End Class

Class EmployeeUnit
    Inherits Unit
    Shadows Property People As List(Of Employee)
End class

但是当单位定义为此

unit.People IsNot Nothing

unit.People IsNot Nothing返回False

我已尝试Overloads而不是Shadows,但结果仍为False

如果没有casting Dim unit As Unit = New EmployeeUnit With {.People = employeeList} unit,有没有办法做到这一点?

0 个答案:

没有答案