Convert VB to C# - My.Application.Info.DirectoryPath

后端 未结 8 1727
自闭症患者
自闭症患者 2021-02-04 06:35

What are the best C# (csharp) equivalents for the following VB (VB.NET, VisualBasic) statements:

My.Application.Info.DirectoryPath

My.Computer.Clipboard

My.Com         


        
相关标签:
8条回答
  • 2021-02-04 07:01

    This may not be exactly what you're looking for, but just in case you want to take a shortcut, if you add a reference to the Microsoft.VisualBasic assembly, you can use the nifty tools VB programmers have access via the MyServices namespace.

    0 讨论(0)
  • 2021-02-04 07:05

    I think that you search is this sentence:

    Application.StartupPath;
    //Get file path without file name.
    
    0 讨论(0)
提交回复
热议问题