NLog.Targets.FileTarget.GetFiles C# (CSharp) Method

GetFiles() private static method

Gets the collection of files in the specified directory which they match the fileNameMask.
private static GetFiles ( DirectoryInfo directoryInfo, string fileNameMask ) : IEnumerable
directoryInfo System.IO.DirectoryInfo Directory to searched.
fileNameMask string Pattern which the files will be searched against.
return IEnumerable
        private static IEnumerable<FileInfo> GetFiles(DirectoryInfo directoryInfo, string fileNameMask)
        {
#if SILVERLIGHT && !WINDOWS_PHONE
            return directoryInfo.EnumerateFiles(fileNameMask);
#else
            return directoryInfo.GetFiles(fileNameMask);
#endif
        }