Class GenerateCSharpGenericParameterExtensions
Extension methods that support the generation of source in the C# language from the CsGenericParameter model.
Inherited Members
Namespace: CodeFactory.WinVs.Models.CSharp
Assembly: CodeFactory.WinVs.dll
Syntax
public static class GenerateCSharpGenericParameterExtensions
Methods
GenerateCSharpGenericWhereClauseSignature(CsGenericParameter, NamespaceManager, List<MapNamespace>)
Extension method that generates the where clause for a generic parameter if one exists. This will not generate if the generic parameter is not a place holder type, or if no where clause conditions have been provided.
Declaration
public static string GenerateCSharpGenericWhereClauseSignature(this CsGenericParameter source, NamespaceManager manager = null, List<MapNamespace> mappedNamespaces = null)
Parameters
Type | Name | Description |
---|---|---|
CsGenericParameter | source | Generic parameter to generate the where clause from. |
NamespaceManager | manager | Optional parameter that contains all the using statements from the source code, when used will replace namespaces on type definition in code. |
List<MapNamespace> | mappedNamespaces | Optional parameter that provides namespaces to be mapped to. |
Returns
Type | Description |
---|---|
string | Null if the where clause was not generated, or the C# syntax for the where clause. |