Class CsParameterDefaultValueExtensions
Extensions class that provides common automation tasks rolled up under standard extension methods that support the CsParameterDefaultValue model.
Inherited Members
Namespace: CodeFactory.Formatting.CSharp
Assembly: CodeFactory.Formatting.CSharp.dll
Syntax
public static class CsParameterDefaultValueExtensions
Methods
| Improve this Doc View SourceCSharpFormatParameterDefaultValue(CsParameterDefaultValue, CsType)
Extension method that generates the default value syntax for a parameter in the C# language.
Declaration
public static string CSharpFormatParameterDefaultValue(this CsParameterDefaultValue source, CsType type)
Parameters
Type | Name | Description |
---|---|---|
CsParameterDefaultValue | source | The target default value to format. |
CsType | type | The target type of the value to be formatted. |
Returns
Type | Description |
---|---|
string | The fully formatted syntax for the default value or null if data was missing. |