Pomona.ExpandPathsUtils.GetAllSubPaths C# (CSharp) 메소드

GetAllSubPaths() 개인적인 정적인 메소드

private static GetAllSubPaths ( string s ) : IEnumerable
s string
리턴 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;
        }
    }