Error 'Append' is not a member of 'System.Array'

@NIVED_NAMBIAR
The linq query is explained in the topic i am sharing below:

The .xaml file is shared by @ppr in the solution.