SyntaxFix
Write A Post
Hire A Developer
Questions
int keyIndex = Array.FindIndex(words, w => w.IsKey);
That actually gets you the integer index and not the object, regardless of what custom class you have created