谁能解释下立即窗口行为:VB.Net即时窗口中`?`和`Debug.Print`有什么区别?
Debug.Print mDb.DatabaseOptions
Method arguments must be enclosed in parentheses.
Debug.Print(mDb.DatabaseOptions)
Value of type 'DatabaseOptions' cannot be converted to 'String'.
? mDb.DatabaseOptions
{Microsoft.SqlServer.Management.Smo.DatabaseOptions}
AnsiNullDefault: False
...
UserData: Nothing
问号是
Debug.Print
这显然不是100%的别名(?)这是真的,因为这两个陈述在上面的例子中表现出不同的行为。如果这有什么差别,我使用VB 2008