Using LINQ with C# language framework

Hello just a quick question.

I keep getting this the following error message

I am attempting to use LINQ to query the last row of a DataTable with the name 通勤経路 and then attempt to retrieve the value of the 到着 column as a string.

通勤経路.AsEnumerable().LastOrDefault().Field<string>("到着")

thank you

Hi,

you can use this expression.

DT.AsEnumerable().LastOrDefault()

Hope this will helps you.

Hi,

For now can you try to save the xaml, then restart Studio and open the project? Automatic recovery may work.

Regards,