public static System.IO.SearchOption TranslateSearchOption(DirectoryReaderSearchOption value) { switch (value) { case DirectoryReaderSearchOption.TopDirectoryOnly: return(SearchOption.TopDirectoryOnly); case DirectoryReaderSearchOption.AllDirectories: return(SearchOption.AllDirectories); default: return(SearchOption.TopDirectoryOnly); } }
public static System.IO.SearchOption TranslateSearchOption(DirectoryReaderSearchOption value) { switch (value) { case DirectoryReaderSearchOption.TopDirectoryOnly: return SearchOption.TopDirectoryOnly; case DirectoryReaderSearchOption.AllDirectories: return SearchOption.AllDirectories; default: return SearchOption.TopDirectoryOnly; } }