This seems like it should be very simple, I have the following code
var additionalInformation= response.AdditionalInformation.Select( async x => new AdditionalInformationItem
{
StatementCode = x?.StatementCode?.Value,
LimitDateTime = x?.LimitDateTime?.Item?.Value,
StatementTypeCode = x?.StatementTypeCode?.Value,
StatementDescription = x?.StatementDescription?.Value,
AdditionalInformationResult = await BuildAdditionalInformationPointers(x)
}).ToList();
What I am trying to achieve is for additionalInformation to be of type
List<AdditionalInformationItem>
, what I am getting is List<Task<AdditionalInformationItem>>
Can anyone help me correctly reformulate my statement?