I have this very simple c# statement
var list = new int[4];
var query1 = from element in list
where element.Length > 10
select element;
and for some reason it's not letting me use Length property of int array and throwing me a following exception:
'int' does not contain a definition for 'Length' and no extension method
'Length' accepting a first argument of type 'int' could be found (press F4
to add a using directive or assembly reference)
i cannot figure what's going on. if i write the following:
var query1 = from element in list.Length
where element > 10
select element;
then it works.