Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有一个问题,我用 .NET 4 Framework 开发了一个程序,但我必须切换到 3.5(VS 2008)——但在 3.5 中不包括 EnumerateFiles。我可以为此使用什么?
我在这里使用它:
var txtFiles = Directory.EnumerateFiles(folder_pfad, "*.txt", SearchOption.TopDirectoryOnly);
谢谢。
我认为这会奏效...
s = Directory.GetFiles(folder_pfad, "*.txt", SearchOption.TopDirectoryOnly);