A Code/Description list with string-based case-insensitive codes.

This collection contains ISCodeDescriptionListItem objects. Each item has a code and description and the list can hold duplicate codes, ie. code does not need to be unique. The ListType determines how this list will function: either as a standard list in which items are added to the bottom or as a MRU list where items are added to the top and if you try to add duplicate items, they are removed and added to the top.

Implements I_ISDirty

Methods

Name Description
Add Add an item to the list.
AppendFromCsvString
Clear Clear collection.
CountCode Gets the count of the Code within the collection.
CountDescription Gets the count of the Description within the collection.
Exists Checks to see if a Code exists in the collection.
ExistsDescription Checks to see if a Description exists in the collection.
FromCsvString
FromDataTable Populates the Code Description List from a DataTable.
FromJsonString Update from a JSON-formatted String.
GetCodeFromDescription Gets the Code from a Description. If Description is not found a blank String is returned.
GetDescriptionFromCode Get a Description from a Code.
IndexOfCode Get the Index of a Code within the collection.
IndexOfDescription Get the Index of a Description within the collection.
RemoveAt Remove an item from the collection.
Sort Sort based on Description.
ToCsvString Creates a CSV string from collection.
ToDataSet
ToDataTable
ToJsonObject Convert to a generic List that is easily serialisable to a JSON array with Code and Description properties.
ToJsonString Convert to a JSON array with Code and Description properties.
ToListReadOnly Create a List.

Properties

Name Description
IsDirty Read-Only
ListType Read-Only
MaxItems
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0