Snippet: If TryCast Is Nothing

property value
IDE Visual Studio
Language VB
Title If TryCast Is Nothing
Shortcut ifxtc
Description If TryCast Is Nothing
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
identifier Identifier name x yes
type Type to cast to Object yes

Code

Dim x = Nothing
	If TryCast(x, Object) Is Nothing Then
		
	End If