StringExtensions Class

Summary

Contains extension methods for string.
Namespace
Cake.Core
Base Types
  • object
graph BT Type-->Base0["object"] Type["StringExtensions"] class Type type-node

Syntax

public static class StringExtensions

Methods

Name Value Summary
NormalizeLineEndings(string) string
Normalizes the line endings in a string.
static
Quote(string) string
Quotes the specified string.
static
SplitLines(string) string[]
Splits the string into lines.
static
UnQuote(string) string
Unquote the specified string.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin