HtmlEscape(input, leaveSingleQuotesAlone, leaveDoubleQuotesAlone) Indent(str, by, indentFirstLine) ParseInt(str, default_, style, provider) Replace(str, oldValue, newValue, comparison)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Extension method: string Unindent(this string)Declarationpublic static string Unindent(
this string str
) Summary
Removes the overall indentation of the specified string while maintaining the relative indentation of each line. Parametersthis string | str |
String to remove indentation from. |
Returns
A string in which every line that isn’t all whitespace has had spaces removed from the beginning equal to the
least amount of spaces at the beginning of any line. |