Skip to content

Instantly share code, notes, and snippets.

@JeremyKuhne
Created March 8, 2018 06:35
Show Gist options
  • Save JeremyKuhne/de0ebe352f984767103c9cd970aedd37 to your computer and use it in GitHub Desktop.
Save JeremyKuhne/de0ebe352f984767103c9cd970aedd37 to your computer and use it in GitHub Desktop.
File name enumerable example
IEnumerable<string> fileNames =
new FileSystemEnumerable<string>(
@"C:\test",
(ref FileSystemEntry entry) => entry.FileName.ToString())
{
ShouldIncludePredicate = (ref FileSystemEntry entry) => !entry.IsDirectory
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment