What is the equivalent in VB.NET of the C# As keyword, as in the following?
var x = y as String; if (x == null) ...
It is TryCast:
Dim x As String = TryCast(y, String) If x Is Nothing Then ...
2.1m questions
2.1m answers
60 comments
57.0k users