VB.NET to C# - my.computer.getfiles()

前端 未结 2 679
野性不改
野性不改 2021-01-18 08:13

What is the equivalent C# code for this VB.NET code?

My.Computer.FileSystem.GetFiles(....)
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-18 08:36

    The My class is VB.NET specific.

    You can use the static methods of the System.IO.Directory class - e.g. Directory.GetFiles.

提交回复
热议问题