Class StringExtensions
- Namespace
- DotNetDo
- Assembly
- DotNetDo.Core.dll
Adds scripting-oriented string helpers.
public static class StringExtensionsMethods
DetectedNewLine(string)
Detects the newline sequence used in the given text. If no newline is found, returns the system's default newline sequence.
public static string DetectedNewLine(this string text)Parameters
textstring
Returns
QuotedArgument(string)
Renders the value as one quoted command-line argument.
public static string QuotedArgument(this string value)Parameters
valuestring
Returns
SplitLines(string)
Splits text into lines using standard text-reader newline semantics.
public static string[] SplitLines(this string value)Parameters
valuestring
Returns
- string[]