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
More Related Contents:
- String Operation using Linq
- Sum multidimensional array over dimensions [closed]
- Preserving order with LINQ
- printing all contents of array in C#
- How do I concatenate two arrays in C#?
- Conversion from List to array T[]
- Easiest way to Rotate a List in c#
- The LINQ expression node type ‘ArrayIndex’ is not supported in LINQ to Entities
- using LINQ to find the cumulative sum of an array of numbers in C#
- How to read lines to dictionary with linQ [closed]
- How to flatten tree via LINQ?
- Using LINQ to remove elements from a List
- Dynamically access table in EF Core 2.0
- Is string in array?
- How to get little endian data from big endian in c# using bitConverter.ToInt32 method?
- How to “zip” or “rotate” a variable number of lists?
- Cast LINQ result to ObservableCollection
- c# Array.FindAllIndexOf which FindAll IndexOf
- DISTINCT() and ORDERBY issue
- Is it Linq or Lambda?
- Can I LINQ a JSON?
- How to make LINQ execute a (SQL) LIKE range search
- List complex sorting
- Good way to get the key of the highest value of a Dictionary in C#
- How to delete an array in c#?
- Looking at each combination in jagged array
- Select multiple fields group by and sum
- Linq – Top value from each group
- Unable to change array size in Inspector variable in Unity?
- When to use ArrayList over array[] in c#?