StringBuilder custom methods
More...
|
static bool | AppendIf< T > (this StringBuilder sb, T o, bool? condition=null) |
| Conditionally appends content to the StringBuilder instance More...
|
|
static void | AppendLineIf< T > (this StringBuilder sb, T o, bool? condition=null) |
| Conditionally appends content and a newline to the StringBuilder instance More...
|
|
StringBuilder custom methods
◆ AppendIf< T >()
static bool Sphyrnidae.Common.Extensions.StringBuilderExtensions.AppendIf< T > |
( |
this StringBuilder |
sb, |
|
|
T |
o, |
|
|
bool? |
condition = null |
|
) |
| |
|
static |
Conditionally appends content to the StringBuilder instance
- Template Parameters
-
T | The type of object being added |
- Parameters
-
sb | The StringBuilder |
o | The object being added |
condition | The result of the condition (if null or false, this will not append the object) |
- Returns
- True if the object was appended, false otherwise
◆ AppendLineIf< T >()
static void Sphyrnidae.Common.Extensions.StringBuilderExtensions.AppendLineIf< T > |
( |
this StringBuilder |
sb, |
|
|
T |
o, |
|
|
bool? |
condition = null |
|
) |
| |
|
static |
Conditionally appends content and a newline to the StringBuilder instance
- Template Parameters
-
T | The type of object being added |
- Parameters
-
sb | The StringBuilder |
o | The object being added |
condition | The result of the condition (if null or false, this will not append the object) |
The documentation for this class was generated from the following file:
- C:/Users/dougb/Desktop/Sphyrnidae/New/Common/Common/Extensions/StringBuilderExtensions.cs