c# - 将 VB 转换为 C# - My.Application.Info.DirectoryPath

标签 c# vb.net

以下 VB(VB.NET、VisualBasic)语句的最佳 C# (csharp) 等价物是什么:

My.Application.Info.DirectoryPath

My.Computer.Clipboard

My.Computer.Audio.PlaySystemSound()

My.Application.Shutdown()

最佳答案

应用程序.ExecutablePath

系统.Windows.Forms.剪贴板

系统.媒体.*

应用程序.退出

关于c# - 将 VB 转换为 C# - My.Application.Info.DirectoryPath,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1174903/

相关文章:

vb.net - VB.NET ArrayList到List(Of T)类型的复制/转换

javascript - UWP Webview 从网页获取链接到数组

vb.net - .Net - 检测外观设置(经典还是 XP?)

javascript - 使用 RegEx 进行 JavaScript 字符串参数编码

asp.net - UpdatePanel崩溃,其他更新面板不起作用

c# - 在代码隐藏中将控件添加到 html 表

c# - 在 Xamarin Android 中访问 UI 线程

C# 向 Minecraft 发送关键输入以移动玩家

c# - Azure AD B2C 和图 : cannot list users with memberOf

c# - LINQ2SQL : how to merge two columns from the same table into a single list