GitScc.GitRepository.TryGetRelativePath C# (CSharp) 메소드

TryGetRelativePath() 개인적인 메소드

private TryGetRelativePath ( string fileName, string &relativePath ) : bool
fileName string
relativePath string
리턴 bool
        private bool TryGetRelativePath(string fileName, out string relativePath)
        {
            relativePath = null;
            if (fileName.StartsWith(workingDirectory, StringComparison.OrdinalIgnoreCase))
            {
                relativePath = fileName.Substring(workingDirectory.Length);
                return true;
            }
            return false;
        }