private IEnumerable <string> GetFileTags() { yield return(ProjectId.ToLowerInvariant()); if (!string.IsNullOrEmpty(Path)) { var path = Path.ToLowerInvariant(); string fileName = path.Substring(path.LastIndexOfAny(new[] { '\\', '/' }) + 1); yield return(fileName); var extensionSeparatorIndex = fileName.LastIndexOf('.'); if (extensionSeparatorIndex > -1) { yield return(fileName.Substring(extensionSeparatorIndex + 1)); yield return(fileName.Substring(0, extensionSeparatorIndex)); } } }