Nat*_*ugg 2 c# generics c#-4.0
我正在使用两种类型,一种是通用的,另一种不是.我没有对象的实例,但我想找出if ( MyType is T )或换句话说if ( MyType inherits T)
我再次寻找:
if ( Truck is Vehicle )
Run Code Online (Sandbox Code Playgroud)
不
if ( MyTruckObject is Vehicle)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
430 次 |
| 最近记录: |