Table of Contents

Class ABCString

Namespace
SunamoString._public.SunamoData.Data
Assembly
SunamoString.dll

Represents a collection of ABString key-value pairs.

public class ABCString : List<ABString>, IList<ABString>, ICollection<ABString>, IReadOnlyList<ABString>, IReadOnlyCollection<ABString>, IEnumerable<ABString>, IList, ICollection, IEnumerable
Inheritance
ABCString
Implements
Inherited Members
Extension Methods

Constructors

ABCString()

Initializes a new empty ABCString collection.

public ABCString()

ABCString(params ABString[])

Initializes a new ABCString from an array of ABString items.

public ABCString(params ABString[] abStringItems)

Parameters

abStringItems ABString[]

The ABString items to add to the collection.

ABCString(int)

Initializes a new ABCString with a specified capacity, filled with null entries.

public ABCString(int capacity)

Parameters

capacity int

The number of null entries to pre-fill.

ABCString(params object[])

Initializes a new ABCString from name-value pairs or existing ABString instances.

public ABCString(params object[] nameValuePairs)

Parameters

nameValuePairs object[]

Array of objects interpreted as name-value pairs or ABString instances.

Fields

Empty

An empty ABCString collection.

public static ABCString Empty

Field Value

ABCString

Properties

Length

Gets the number of elements in the collection (alias for Count).

public int Length { get; }

Property Value

int

Methods

OnlyAs()

Returns a list containing only the A (key) components.

public List<string> OnlyAs()

Returns

List<string>

OnlyBs()

Returns an array containing only the B (value) components.

public object[] OnlyBs()

Returns

object[]

OnlyBs(List<ABString>)

Returns a list containing only the B (value) components from the specified list.

public static List<object> OnlyBs(List<ABString> list)

Parameters

list List<ABString>

The list of ABString items to extract values from.

Returns

List<object>

OnlyBsList()

Returns a list containing only the B (value) components.

public List<object> OnlyBsList()

Returns

List<object>

ToString()

Returns a comma-separated string representation of all key-value pairs.

public override string ToString()

Returns

string