Class LH
Inherited Members
Namespace: CoverageKiller2.Logging
Assembly: CoverageKiller2.dll
Syntax
public static class LH
Methods
DumpString(IEnumerable<string>, string, string, bool)
Formats a sequence of strings into a multiline string with optional line numbering and prefix.
Declaration
public static string DumpString(this IEnumerable<string> lines, string preamble = "\n", string prefix = "", bool includeIndex = false)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | lines | The sequence of strings to format. |
string | preamble | |
string | prefix | Optional prefix to apply to each line. |
bool | includeIndex | If true, include line numbers starting at 1. |
Returns
Type | Description |
---|---|
string | A single formatted string. |
GetTableTitle(CKTable, string)
Declaration
public static string GetTableTitle(CKTable table, string markerText)
Parameters
Type | Name | Description |
---|---|---|
CKTable | table | |
string | markerText |
Returns
Type | Description |
---|---|
string |
GetTableTitle(Table, string)
Attempts to find a paragraph immediately preceding the given table that contains a marker text, used as a title.
Declaration
public static string GetTableTitle(Table table, string markerText)
Parameters
Type | Name | Description |
---|---|---|
Table | table | The Word table to check. |
string | markerText | The marker text to search for (scrunched). |
Returns
Type | Description |
---|---|
string | The matching paragraph text, or null if not found. |
LogThrow(Exception, string)
Declaration
public static Exception LogThrow(Exception exception = null, string callerName = "")
Parameters
Type | Name | Description |
---|---|---|
Exception | exception | |
string | callerName |
Returns
Type | Description |
---|---|
Exception |