BytecodeApi Documentation

IEnumerableConverterMethod Enumeration

Specifies the method that is used to convert IEnumerable values.

Namespace:  BytecodeApi.UI.Converters
Assembly:  BytecodeApi.UI (in BytecodeApi.UI.dll)

Syntax


public enum IEnumerableConverterMethod
Public Enumeration IEnumerableConverterMethod
public enum class IEnumerableConverterMethod

Members


Member nameDescription
First Returns the first element in the IEnumerable value.
FirstOrDefault Returns the first element in the IEnumerable value, or a default value if the sequence contains no elements.
Last Returns the last element in the IEnumerable value.
LastOrDefault Returns the last element in the IEnumerable value, or a default value if the sequence contains no elements.
ElementAt Returns the element in the IEnumerable value at the index as specified in the Int32 parameter.
ElementAtOrDefault Returns the element in the IEnumerable value at the index as specified in the Int32 parameter or a default value if the index is out of range.
Count Returns the number of elements in the IEnumerable value.
Skip Bypasses a number of elements in the IEnumerable value as specified in the Int32 parameter and then returns the remaining elements.
Take Returns a number of contiguous elements as specified in the Int32 parameter from the start of the IEnumerable value.
JoinStrings Returns a String from the IEnumerable value of objects. All objects in the IEnumerable value are converted to String by calling Object. Then, the resulting strings are concatenated.
JoinStringsComma Returns a String from the IEnumerable value of objects. All objects in the IEnumerable value are converted to String by calling Object. Then, the resulting strings are concatenated using ", " as separator.
AsMultilineString Returns a multiline String from the IEnumerable collection of objects, by concatenating all values with a CRLF. All objects in the IEnumerable value are converted to String by calling Object.
BooleansToIndeterminate Returns trueTruetruetrue (True in Visual Basic), if all values from the IEnumerable value are equal to trueTruetruetrue (True in Visual Basic); falseFalsefalsefalse (False in Visual Basic), if all values are equal to falseFalsefalsefalse (False in Visual Basic) or the IEnumerable has no elements; otherwise, nullNothingnullptra null reference (Nothing in Visual Basic). The value must be a collection of Boolean or Boolean? values.