List<List<dynamic>> characterData // This get its value from another place, not important
for (int i = 0; i <= 2; i++)
{
if (characterData.Count > 0)
{
if (!string.IsNullOrEmpty(characterData[i][0].ToString())) // This give me a error, so how do I check if the list has any values, I'm just checking the first value as it seemed logically to me
{
// Rest of my code
}
}
}
List<List<dynamic>> characterData // This get its value from another place, not important
for (int i = 0; i <= 2; i++)
{
if (characterData.Count > 0)
{
if (!string.IsNullOrEmpty(characterData[i][0].ToString())) // This give me a error, so how do I check if the list has any values, I'm just checking the first value as it seemed logically to me
{
// Rest of my code
}
}
}