在VB.Net中,声明字符串的常用方法是:
Dim helloWorld As String = "Hello, World!"
但是,您也可以使用动态变量,例如:
Dim helloWorld = "Hello, World!"
两者最终会成为同一件事,但最佳做法是什么?
.net vb.net
.net ×1
vb.net ×1