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
Post a Comment