2
的新實例,下面的代碼:需要初始化對象
CodeVariableDeclarationStatement variableDeclaration = new CodeVariableDeclarationStatement(
// Type of the variable to declare.
typeof(string),
// Name of the variable to declare.
"TestString");
產生如下VB.Net聲明:
Dim TestString As String
我需要什麼樣的變化,使它看起來像這樣:
Dim TestString As New StringBuilder()
我對如何讓NEW關鍵字出現感興趣。