Say I have an extension method on String ShowDialog, that displays a mesagebox with the specified string.
Why I cant do now
"Hello World".ShowDialog()
and need to play with
Call "Hello World".ShowDialog()
or
CStr("Hello World").ShowDialog()
or even
Dim myString = "Hello World"
myString.ShowDialog()
or even
If "Hello World".ShowDialog() = Windows.Forms.DialogResult.OK Then
CStr("Thank You!").ShowDialog()
End If
In VB.Net, expressions have to start with an identifier.
does not start with an identifier, hence you have to use the
Callstatement: