Table of Contents

Struct StringValues

Namespace
Acuit.Pinpoint.Primitives
Assembly
Acuit.Pinpoint.Configuration.dll

Represents zero/null, one, or many strings in an efficient way.

public readonly struct StringValues : IList<string>, ICollection<string>, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable, IEquatable<StringValues>, IEquatable<string>, IEquatable<string[]>
Implements
Inherited Members

Constructors

StringValues(string)

public StringValues(string value)

Parameters

value string

StringValues(string[])

public StringValues(string[] values)

Parameters

values string[]

Fields

Empty

public static readonly StringValues Empty

Field Value

StringValues

Properties

Count

Gets the number of elements contained in the ICollection<T>.

public int Count { get; }

Property Value

int

The number of elements contained in the ICollection<T>.

this[int]

Gets the element at the specified index in the read-only list.

public string this[int index] { get; }

Parameters

index int

The zero-based index of the element to get.

Property Value

string

The element at the specified index in the read-only list.

Methods

Concat(StringValues, StringValues)

public static StringValues Concat(StringValues values1, StringValues values2)

Parameters

values1 StringValues
values2 StringValues

Returns

StringValues

Concat(in StringValues, string)

public static StringValues Concat(in StringValues values, string value)

Parameters

values StringValues
value string

Returns

StringValues

Concat(string, in StringValues)

public static StringValues Concat(string value, in StringValues values)

Parameters

value string
values StringValues

Returns

StringValues

Equals(StringValues)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(StringValues other)

Parameters

other StringValues

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(StringValues, StringValues)

public static bool Equals(StringValues left, StringValues right)

Parameters

left StringValues
right StringValues

Returns

bool

Equals(StringValues, string)

public static bool Equals(StringValues left, string right)

Parameters

left StringValues
right string

Returns

bool

Equals(StringValues, string[])

public static bool Equals(StringValues left, string[] right)

Parameters

left StringValues
right string[]

Returns

bool

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Equals(string)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(string other)

Parameters

other string

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(string, StringValues)

public static bool Equals(string left, StringValues right)

Parameters

left string
right StringValues

Returns

bool

Equals(string[])

Indicates whether the current object is equal to another object of the same type.

public bool Equals(string[] other)

Parameters

other string[]

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(string[], StringValues)

public static bool Equals(string[] left, StringValues right)

Parameters

left string[]
right StringValues

Returns

bool

GetEnumerator()

public StringValues.Enumerator GetEnumerator()

Returns

StringValues.Enumerator

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

IsNullOrEmpty(StringValues)

public static bool IsNullOrEmpty(StringValues value)

Parameters

value StringValues

Returns

bool

ToArray()

public string[] ToArray()

Returns

string[]

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(StringValues, StringValues)

public static bool operator ==(StringValues left, StringValues right)

Parameters

left StringValues
right StringValues

Returns

bool

operator ==(StringValues, object)

public static bool operator ==(StringValues left, object right)

Parameters

left StringValues
right object

Returns

bool

operator ==(StringValues, string)

public static bool operator ==(StringValues left, string right)

Parameters

left StringValues
right string

Returns

bool

operator ==(StringValues, string[])

public static bool operator ==(StringValues left, string[] right)

Parameters

left StringValues
right string[]

Returns

bool

operator ==(object, StringValues)

public static bool operator ==(object left, StringValues right)

Parameters

left object
right StringValues

Returns

bool

operator ==(string, StringValues)

public static bool operator ==(string left, StringValues right)

Parameters

left string
right StringValues

Returns

bool

operator ==(string[], StringValues)

public static bool operator ==(string[] left, StringValues right)

Parameters

left string[]
right StringValues

Returns

bool

implicit operator string(StringValues)

public static implicit operator string(StringValues values)

Parameters

values StringValues

Returns

string

implicit operator string[](StringValues)

public static implicit operator string[](StringValues value)

Parameters

value StringValues

Returns

string[]

implicit operator StringValues(string)

public static implicit operator StringValues(string value)

Parameters

value string

Returns

StringValues

implicit operator StringValues(string[])

public static implicit operator StringValues(string[] values)

Parameters

values string[]

Returns

StringValues

operator !=(StringValues, StringValues)

public static bool operator !=(StringValues left, StringValues right)

Parameters

left StringValues
right StringValues

Returns

bool

operator !=(StringValues, object)

public static bool operator !=(StringValues left, object right)

Parameters

left StringValues
right object

Returns

bool

operator !=(StringValues, string)

public static bool operator !=(StringValues left, string right)

Parameters

left StringValues
right string

Returns

bool

operator !=(StringValues, string[])

public static bool operator !=(StringValues left, string[] right)

Parameters

left StringValues
right string[]

Returns

bool

operator !=(object, StringValues)

public static bool operator !=(object left, StringValues right)

Parameters

left object
right StringValues

Returns

bool

operator !=(string, StringValues)

public static bool operator !=(string left, StringValues right)

Parameters

left string
right StringValues

Returns

bool

operator !=(string[], StringValues)

public static bool operator !=(string[] left, StringValues right)

Parameters

left string[]
right StringValues

Returns

bool