What is the VB.NET equivalent of the C# “is” keyword?

后端 未结 3 2051
终归单人心
终归单人心 2020-12-15 15:03

I need to check if a given object implements an interface. In C# I would simply say:

if (x is IFoo) { }

Is using a TryCast() a

3条回答
提交回复
热议问题