Tag Archives: Find how many \ in your path using LINQ

Find how many \ in your path using LINQ

The sample below let you find out how many char ‘\’ is in a given path. Realize I used ‘\\’ and not ‘\’. public static void GetPath(string strPath) {   char chr = ‘\\’;   var result = from r … Continue reading

Posted in .Net | Tagged , | Leave a comment