I have code for searching file. And now have Lambda Expression for filtering that.How to convert the Expression to Func<string> variable. Thanks
Code :
Directory.GetFiles(folder, "*" + KeyWord + "*").Where(f =>formatFile.Contains(f.Split('.').Last().ToLower()));
into variable :
Func<string> Lambda = ?? (f =>formatFile.Contains(f.Split('.').Last().ToLower())) \\ convert the Expression;
Pravesh Singh
18-Aug-2014Func<string,bool> lambda = f => formatFile.Contains(f.Split('.').Last().ToLower());