Kannan1212
New member
- Joined
- Apr 11, 2020
- Messages
- 4
- Programming Experience
- 1-3
This is my code -
var creditAccount = response.Accounts.Where(x => x.Value.Identifier.ProductCode == "MMM").Select(x=>x.Value.Identifier).ToList();
// For Example :- creditAccount - 0000002134665300468820,0000001528830814061271
foreach (var item in creditAccount)
{
permanentIdList.Add(item.PermanentIdentifier);
}
Here i Need to remove two zeros in the creditAccount before pushing into the list. Please help me How do I remove that.
I am expecting - For Example :- creditAccount - 00002134665300468820, 00001528830814061271
var creditAccount = response.Accounts.Where(x => x.Value.Identifier.ProductCode == "MMM").Select(x=>x.Value.Identifier).ToList();
// For Example :- creditAccount - 0000002134665300468820,0000001528830814061271
foreach (var item in creditAccount)
{
permanentIdList.Add(item.PermanentIdentifier);
}
Here i Need to remove two zeros in the creditAccount before pushing into the list. Please help me How do I remove that.
I am expecting - For Example :- creditAccount - 00002134665300468820, 00001528830814061271