IRtConnection.GetListAsync<T> Method (String, IFromStringConverter)

The GetListAsync<T> method (String, IFromStringConverter) gets an asynchronous list of primitives and allows you to specify a converter.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

Task<IEnumerable<T>> GetListAsync<T>(
   string listName,
   IFromStringConverter converter
)

Arguments

Using the IRtConnection Interface for the GetListAsync<T> Method (String, IFromStringConverter)

The following code is an example of using the GetListAsync<T> method (String, IFromStringConverter):

await connection.GetListAsync<bool>("MyClass.BoolItems", new CLRBoolStringConverter());
await connection.GetListAsync<DateTime>("MyClasss.DateItems", new CLRDateUK8StringConverter());
await connection.GetListAsync<int>("MyClass.NumberItems", new CLRIntStringConverter());