public static string[] traitNames = { "Happiness", "Respect", "Authority" };
public static string[] suppliesNames = { "Food", "Iron", "Gold" };
private List<string[]> arraysNames = new List<string[]> { traitNames, suppliesNames };
string[] currentArrayNames = arraysNames[i1];
int namesCount = currentArrayNames.Count;//ERROR HERE
Hello! For some reason, on the last line where I try to Count, I get an error message over Count:
Cannot convert method group "Count" to non-delegate type 'int'.
How would I be able to Count currentArrayNames' amount of children without getting this counting error? Thanks.
using System.Linqand the error will suddenly make more senseCount()- note()- from Linq which is the same for all collections