_____________________
List<double> list =new List<double>(array);
for ( var i=list.Count; i>=0;i--)
{
if (n< array[i])
list.RemoveAt(i);
}
return list.ToArray();
_____________________
List<double> list =new List<double>(array);
for ( var i=list.Count; i>=0;i--)
{
if (n< array[i])
list.RemoveAt(i);
}
return list.ToArray();