Method | Description | |
---|---|---|
AddProject ( Project project ) : ProjectName |
Add a project to the cache.
|
|
Contains ( string name ) : bool | ||
GetProjects ( ) : IEnumerable |
Returns all cached projects.
|
|
IsAmbiguous ( string shortName ) : bool |
Determines if a short name is ambiguous
|
|
RemoveProject ( string name ) : void |
Removes a project and returns the project name instance of the removed project.
|
|
TryGetProject ( string name, Project &project ) : bool |
Finds a project by short name, unique name or custom unique name.
|
|
TryGetProjectName ( string name, ProjectName &projectName ) : bool |
Finds a project name by short name, unique name or custom unique name.
|
|
TryGetProjectNameByShortName ( string name, ProjectName &projectName ) : bool |
Tries to find a project by short name. Returns the project name if and only if it is non-ambiguous.
|
Method | Description | |
---|---|---|
AddShortName ( ProjectName projectName ) : void |
Adds an entry to the short name cache returning any conflicting project name.
|
|
RemoveProjectName ( ProjectName projectName ) : void |
Removes a project from the project name dictionary.
|
|
RemoveShortName ( ProjectName projectName ) : void |
Removes a project from the short name cache.
|
public AddProject ( Project project ) : ProjectName | ||
project | Project | project to add to the cache. |
return | ProjectName |
public IsAmbiguous ( string shortName ) : bool | ||
shortName | string | short name of the project |
return | bool |
public RemoveProject ( string name ) : void | ||
name | string | name of the project to remove. |
return | void |
public TryGetProject ( string name, Project &project ) : bool | ||
name | string | name of the project to retrieve. |
project | Project | project instance |
return | bool |
public TryGetProjectName ( string name, ProjectName &projectName ) : bool | ||
name | string | name of the project |
projectName | ProjectName | project name instance |
return | bool |
public TryGetProjectNameByShortName ( string name, ProjectName &projectName ) : bool | ||
name | string | |
projectName | ProjectName | |
return | bool |