Class VsProjectFolderExtensions
Extensions methods class that support the VsProjectFolder model.
Inherited Members
Namespace: CodeFactory.WinVs.Models.ProjectSystem
Assembly: CodeFactory.WinVs.dll
Syntax
public static class VsProjectFolderExtensions
Methods
FindCSharpSourceByClassNameAsync(VsProjectFolder, string, bool)
Locates a target VsCSharpSource model in a code file hosted in the project folder.
Declaration
public static Task<VsCSharpSource> FindCSharpSourceByClassNameAsync(this VsProjectFolder source, string className, bool searchSubFolders = true)
Parameters
Type | Name | Description |
---|---|---|
VsProjectFolder | source | The project folder to start to search. |
string | className | The name of the class that is managed in the source control file. |
bool | searchSubFolders | Optional parameter that determines if sub folders should also be searched. By default this is set to true. |
Returns
Type | Description |
---|---|
Task<VsCSharpSource> | The source code model the target class was found in. |
FindCSharpSourceByInterfaceNameAsync(VsProjectFolder, string, bool)
Locates a target VsCSharpSource model in a code file hosted in the project folder.
Declaration
public static Task<VsCSharpSource> FindCSharpSourceByInterfaceNameAsync(this VsProjectFolder source, string name, bool searchSubFolders = true)
Parameters
Type | Name | Description |
---|---|---|
VsProjectFolder | source | The project folder to search. |
string | name | The name of the interface that is managed in the source control file. |
bool | searchSubFolders | Optional parameter that determines if sub folders should also be searched. By default this is set to true. |
Returns
Type | Description |
---|---|
Task<VsCSharpSource> | The source code model the target interface was found in. |