<分区>
我已通过 http://converter.telerik.com/ 将以下 C# 代码转换为 VB.NET 代码
public static MessageBoxResult Show(string caption, string text, MessageBoxButton button, MessageBoxImage image)
{
_messageBox = new WpfMessageBox { Label1 = { Content = caption }, Label2 = { Content = text } };
return _result;
}
这是转换后的 VB.NET 代码。
Public Shared Function Show(caption As String, text As String, button As MessageBoxButton, image As MessageBoxImage) As MessageBoxResult
_messageBox = New WpfMessageBox() With { _
Key .Label1 = {Key .Content = caption}, _
Key .Label2 = {Key .Content = text} _
}
Return _result
End Function
这里是错误: