OneOrMoreStrings Class

Summary

Represents one or more string
Assembly
Cake.Jekyll.dll
Namespace
Cake.Jekyll.Core
Interfaces
  • IEnumerable<string>
  • IEnumerable
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IEnumerable<string>"] Type-.->Interface1["IEnumerable"] Type["OneOrMoreStrings"] class Type type-node

Syntax

public class OneOrMoreStrings : IEnumerable<string>, IEnumerable

Attributes

Type Description
DefaultMemberAttribute

Constructors

Name Summary
OneOrMoreStrings(IEnumerable<string>) Create an instance of OneOrMoreStrings
OneOrMoreStrings(string) Create an instance of OneOrMoreStrings

Properties

Name Value Summary
Count int
Gets the number of string values contained in the OneOrMoreStrings.
this[int] string
Gets the string value at the specified index.

Methods

Name Value Summary
GetEnumerator() IEnumerator<string>
Return an enumerator that iterates through a list of string.

Operators

Name Value Summary
implicit operator OneOrMoreStrings(List<string>) OneOrMoreStrings
implicit operator OneOrMoreStrings(string) OneOrMoreStrings
implicit operator OneOrMoreStrings(string[]) OneOrMoreStrings

Extension Methods

Name Value Summary
Dump<OneOrMoreStrings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<OneOrMoreStrings>(OneOrMoreStrings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<OneOrMoreStrings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<OneOrMoreStrings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<OneOrMoreStrings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<OneOrMoreStrings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
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