<PackageReference Include="Microsoft.Extensions.Primitives" Version="10.0.0-rc.2.25502.107" />

StringValues

public struct StringValues : IList<string>, ICollection<string>, IEnumerable<string>, IEnumerable, IReadOnlyList<string>, IReadOnlyCollection<string>, IEquatable<StringValues>, IEquatable<string>, IEquatable<string[]>
Represents zero/null, one, or many strings in an efficient way.
public struct Enumerator : IEnumerator<string>, IEnumerator, IDisposable

Enumerates the string values of a StringValues.

public static readonly StringValues Empty

A readonly instance of the StringValues struct whose value is an empty string array.

public int Count { get; }

Gets the number of String elements contained in this StringValues.

public string this[int index] { get; }

Gets the String at the specified index.

public StringValues(string value)

Initializes a new instance of the StringValues structure using the specified string.

public StringValues(string[] values)

Initializes a new instance of the StringValues structure using the specified array of strings.

public static StringValues Concat(StringValues values1, StringValues values2)

Concatenates two specified instances of StringValues.

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

Concatenates specified instance of StringValues with specified String.

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

Concatenates specified instance of String with specified StringValues.

public static bool Equals(StringValues left, StringValues right)

Determines whether two specified StringValues objects have the same values in the same order.

public static bool Equals(string left, StringValues right)

Determines whether the specified String and StringValues objects have the same values.

public static bool Equals(StringValues left, string right)

Determines whether the specified StringValues and String objects have the same values.

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

Determines whether the specified string array and StringValues objects have the same values.

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

Determines whether the specified StringValues and string array objects have the same values.

public static bool IsNullOrEmpty(StringValues value)

Indicates whether the specified StringValues contains no string values.

public static bool op_Equality(StringValues left, StringValues right)

Determines whether two specified StringValues have the same values.

public static bool op_Equality(StringValues left, string right)

public static bool op_Equality(string left, StringValues right)

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

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

public static bool op_Equality(StringValues left, object right)

Determines whether the specified StringValues and Object, which must be a StringValues, String, or array of String, have the same value.

public static bool op_Equality(object left, StringValues right)

Determines whether the specified Object, which must be a StringValues, String, or array of String, and specified StringValues, have the same value.

public static StringValues op_Implicit(string value)

Defines an implicit conversion of a given string to a StringValues.

public static StringValues op_Implicit(string[] values)

Defines an implicit conversion of a given string array to a StringValues.

public static string op_Implicit(StringValues values)

Defines an implicit conversion of a given StringValues to a string, with multiple values joined as a comma separated string.

public static string[] op_Implicit(StringValues value)

Defines an implicit conversion of a given StringValues to a string array.

public static bool op_Inequality(StringValues left, StringValues right)

Determines whether two specified StringValues have different values.

public static bool op_Inequality(StringValues left, string right)

Determines whether the specified StringValues and String objects have different values.

public static bool op_Inequality(string left, StringValues right)

Determines whether the specified String and StringValues objects have different values.

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

Determines whether the specified StringValues and string array have different values.

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

Determines whether the specified string array and StringValues have different values.

public static bool op_Inequality(StringValues left, object right)

Determines whether the specified StringValues and Object, which must be a StringValues, String, or array of String, have different values.

public static bool op_Inequality(object left, StringValues right)

Determines whether the specified Object and StringValues object have the same values.

public bool Equals(StringValues other)

Determines whether this instance and another specified StringValues object have the same values.

public bool Equals(string other)

Determines whether this instance and a specified String, have the same value.

public bool Equals(string[] other)

Determines whether this instance and a specified string array have the same values.

Retrieves an object that can iterate through the individual strings in this StringValues.

public string[] ToArray()

Creates a string array from the current StringValues object.