I have the following class:
public class Words
{
public string word;
public bool correct;
}
and I have an array of Words.
Words[] words;
I wish to count how many elements in my array have the property correct set to true.
What would be the most efficient way to do this?
correctset to true, so you don't have to count them.