I have this LINQ query that returns the indices of all the elements in an array whose time value (which is equal double) matches a certain condition, as in the following query.
var sonicIndices = completeLog.Select((item, index) => new { Item = item, Index = index })
.Where(x => Math.Abs(x.Item.time - nullValue) > 0.001)
.Select(item => item.Index).ToArray();
I am sure that this can be improved, but how? I'm at a dead end. Can someone help me with this?
Aamir source
share