C# DirectoryInfo.GetFiles wildcard search
问题 I am experiencing differences in behavior in the following code segment DirectoryInfo di = new DirectoryInfo("c:\"); FileInfo[] textFiles = di.GetFiles("log_???.???.txt"); Where ? is the wildcard for 0 or 1 characters, so this should return files in the path matching the patterns: log_..txt log_0.0.txt log_00.00.txt log_000.000.txt All of these files are returned when compiled for Windows .NET framework 3.5 (desktop), but on the target embedded Windows CE 6 with .NET Compact Embedded