Contains() public static method

Checks whether a path is part of another
public static Contains ( string path1, string path2 ) : bool
path1 string Path that may extend path2 (i.e. Modal/Mode/1)
path2 string Container path (i.e. Modal/Mode)
return bool
Exemplo n.º 1
0
        public ResultsCase FindPath(string resultsPath)
        {
            foreach (ResultsCase rc in this)
            {
                if (ResultsPath.Contains(rc.FullPath, resultsPath))
                {
                    return(rc);
                }
            }

            return(null);
        }