Pomona.ExpandPathsUtils.GetAllSubPaths C# (CSharp) Method

GetAllSubPaths() private static method

private static GetAllSubPaths ( string s ) : IEnumerable
s string
return IEnumerable
        private static IEnumerable<string> GetAllSubPaths(string s)
        {
            int lastDotIndex;
            while ((lastDotIndex = s.LastIndexOf('.')) != -1)
            {
                yield return s;
                s = s.Substring(0, lastDotIndex);
            }

            yield return s;
        }
    }