Class ABCRoslyn
- Namespace
- SunamoRoslyn._public
- Assembly
- SunamoRoslyn.dll
Represents a collection of ABRoslyn name-value pairs.
public class ABCRoslyn : List<ABRoslyn>, IList<ABRoslyn>, ICollection<ABRoslyn>, IReadOnlyList<ABRoslyn>, IReadOnlyCollection<ABRoslyn>, IEnumerable<ABRoslyn>, IList, ICollection, IEnumerable
- Inheritance
-
ABCRoslyn
- Implements
- Inherited Members
- Extension Methods
Constructors
ABCRoslyn()
Initializes a new empty instance of the ABCRoslyn class.
public ABCRoslyn()
ABCRoslyn(params ABRoslyn[])
public ABCRoslyn(params ABRoslyn[] collection)
Parameters
collectionABRoslyn[]The elements to add.
ABCRoslyn(int)
Initializes a new instance of the ABCRoslyn class with specified capacity, filled with nulls.
public ABCRoslyn(int capacity)
Parameters
capacityintThe number of null elements to add.
ABCRoslyn(params object[])
Initializes a new instance of the ABCRoslyn class from interleaved name-value pairs or existing collections.
public ABCRoslyn(params object[] setsNameValue)
Parameters
setsNameValueobject[]The name-value pairs or collections to add.
Fields
Empty
An empty collection instance.
public static ABCRoslyn Empty
Field Value
Properties
Length
Gets the number of elements in this collection.
public int Length { get; }
Property Value
Methods
OnlyAs()
Returns only the name components as a list.
public List<string> OnlyAs()
Returns
OnlyBs()
Returns only the value components as an object array. Must be array due to SQL, see https://stackoverflow.com/questions/9149919/no-mapping-exists-from-object-type-system-collections-generic-list-when-executin
public object[] OnlyBs()
Returns
- object[]
An array of value components.
OnlyBs(List<ABRoslyn>)
Returns only the value components from a given list.
public static List<object> OnlyBs(List<ABRoslyn> list)
Parameters
Returns
OnlyBsList()
Returns only the value components as a list.
public List<object> OnlyBsList()
Returns
ToString()
Returns a comma-separated string representation of all elements.
public override string ToString()
Returns
- string
A comma-separated string of all elements.