Class CsParameterExtensions
Extensions class that provides common automation tasks rolled up under standard extension methods that support the CsParameter model.
Inherited Members
Namespace: CodeFactory.Formatting.CSharp
Assembly: CodeFactory.Formatting.CSharp.dll
Syntax
public static class CsParameterExtensions
Methods
| Improve this Doc View SourceCSharpFormatParametersSignature(IReadOnlyList<CsParameter>, NamespaceManager)
Extension method that create the fully formatted parameters section in c# syntax.
Declaration
public static string CSharpFormatParametersSignature(this IReadOnlyList<CsParameter> source, NamespaceManager manager = null)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<CsParameter> | source | The source list of parameters to be turned into a parameters signature. |
NamespaceManager | manager | Optional parameter that contains all the using statements from the source code, when used will replace namespaces on type definition in code. |
Returns
Type | Description |
---|---|
string | The fully formatted parameters signature or null if data was missing. |