How to convert resultValue[] to string in invoke code activity?

I am using document understanding to extract data from pdf using omnipage ocr, now I want to extract the value from a table fields for which I am using this c# code which is not giving me string value …can someone please help me to get the string value out of this array ?

valQuantity =autoExtraction.ResultsDocument.Fields.Single(f => f.FieldName == strQuantity).Values.First().Components[1].Values[0].Components[0].Values;

You have to use VB.Net. Try Below and check if it works -

valQuantity =autoExtraction.ResultsDocument.Fields.Single(function(f) f.FieldName.toString.Equals(strQuantity)).Values.First().Components(1).Values(0).Components(0).Values