Table of Contents

Class StringExtensions

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Adds scripting-oriented string helpers.

public static class StringExtensions

Methods

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

text string

Returns

string

QuotedArgument(string)

Renders the value as one quoted command-line argument.

public static string QuotedArgument(this string value)

Parameters

value string

Returns

string

SplitLines(string)

Splits text into lines using standard text-reader newline semantics.

public static string[] SplitLines(this string value)

Parameters

value string

Returns

string[]