The GetList<T> method (String, IFromStringConverter) gets a list of primitives and allows you to specify a converter to convert the strings in the list to their primitive types.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
IEnumerable<T> GetList<T>( string listName, IFromStringConverter converter )
Arguments
listName – System.String
This argument provides the name of the list.
converter – IFromStringConverter
This argument specifies the converter.
Using the IRtConnection Interface for the GetList<T> Method (String, IFromStringConverter)
The following code is an example of using the GetList<T> method (String, IFromStringConverter):
Assume you have a list of primitives in your model, such as a list of dates, Boolean, or numbers. You can then get that list by using the following code:
connection.GetList<bool>("MyClass.BoolItems", new CLRBoolStringConverter()); connection.GetList<DateTime>("MyClasss.DateItems", new CLRDateUK8StringConverter()); connection.GetList<int>("MyClass.NumberItems", new CLRIntStringConverter());