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

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

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -