public bool TryGetProjectNameByShortName(string name, out ProjectName projectName)
{
projectName = null;
HashSet<ProjectName> projectNames;
if (_shortNameCache.TryGetValue(name, out projectNames))
{
// Get the item at the front of the queue
projectName = projectNames.Count == 1 ? projectNames.Single() : null;
// Only return true if the short name is unambiguous
return projectName != null;
}
return false;
}