I am passing a list of objects I have added to into a new form through its constructor and this is where the error is shown
public FindRoute(List<AddedLocation> AddedLocation)
{
...
}
here is the class which it is based on
class AddedLocation
{
public string name;
public string PlaceID;
public AddedLocation(string _name,string _PlaceID)
{
name = _name;
PlaceID = _PlaceID;
}
}