VB.net の Select Case ステートメントを beginwith に使用する方法はありますか? または、長いelseifを使用する必要がありますか? 例:
If text.StartsWith("/go") then
elseif test.StartsWith("/stop")
elseif test.StartsWith("/continue")
End If
しかし、代わりに次のようなものです:
Select Case text
Case text.StartsWith("/go")
Case text.StartsWith("/stop")
Case text.StartsWith("/continue")
Case Else
End Select
End Sub