Answer the question
In order to leave comments, you need to log in
How to write this in C#?
JS has a data structure like this
const data = [
{ bill: '123123', amount: 3.25 },
{ bill: '121231', amount: 5 }
]
Answer the question
In order to leave comments, you need to log in
var list = new List<Bill>();
list.Add(new Bill{Bill = 12345, Amount= 6666.6}) ;
var item = list.FirstOrDefault(x=>x.Bill == 12345);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question