I have an exiting program in C# which call an API. The API returns more than 100 rows. The C# program looks as below.
var memberFound = MemberSearch(Date);
if (memberFound != null)
foreach (var member in memberFound)
var list = new List<string>();
I am trying to parse the data in stored temporary in the member
variable (or memberFound) which contains the following information. The data stored looks like an Array, but not works like that. I am trying to pass (member or memberFound) data to another method where I can parse the data and Insert to a table.
Here I have hard time understand var
data type. Please try to help.
memberCode = 1001
age = 32
name = Mark John
memberType = "xxx"
balanceAmount = 2450.00
Thank you very much in advance.