foreach ( Transactions item in info.transaction) { Console.WriteLine("My Name" + item.creditors.Select(m =>m.CFirstName)); }
<pre> class Transactions { public List<CreditorsDetails> creditors { get; set; } }
<pre> class CreditorsDetails { public string CFirstName { get; set; } public string CAddress { get; set; } public string CCountry { get; set; } }
Transactions
CreditorsDetails
item.creditors.Select(m => m.CFirstName)
item.creditors.Select(m => m.CFirstName).FirstOrDefault()
item.creditors.Select(m =>m.CFirstName).FirstOrDefault()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)