I've got a class of payments:
class Payments
{
public string id; //it must be string because of a method
public string name;
public int payment;
}
And a list of objects:
private List<Payments> database = new List<Payments>();
The question is: How can I write it in a file (which is located in the solution's folder) in the easiest way? It shouldn't be the most efficient.