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[])
public ABCString(params ABString[] abStringItems)
Parameters
abStringItemsABString[]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
capacityintThe 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
nameValuePairsobject[]Array of objects interpreted as name-value pairs or ABString instances.
Fields
Empty
An empty ABCString collection.
public static ABCString Empty
Field Value
Properties
Length
Gets the number of elements in the collection (alias for Count).
public int Length { get; }
Property Value
Methods
OnlyAs()
Returns a list containing only the A (key) components.
public List<string> OnlyAs()
Returns
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
Returns
OnlyBsList()
Returns a list containing only the B (value) components.
public List<object> OnlyBsList()
Returns
ToString()
Returns a comma-separated string representation of all key-value pairs.
public override string ToString()