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 SubstringSafe(this string, int)Declarationpublic static string SubstringSafe(
this string source,
int startIndex
)Summary
Same as string.Substring(int) but does not throw exceptions when the start index falls outside the
boundaries of the string. Instead the result is truncated as appropriate. |