C# how to create a subarray or filtered array based on integers that are above a specific value? -


i've tried combining multiple other questions/answers without success.

i have array containing integers varying 0 through 10. need array integers higher e.g. 8.

how can filter or create subarray contain integers?

you can use linq filtering array:

var filteredarray = existingarray.where(x => x > 8).toarray(); 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -