Something like: Target.Tables.Cast() and then make your query of that. And you should properly refactor you code into several lines to make it more readable (this is C# - but I will translate it, 2 sec) Translated: Dim query = From x In Target.Tables. Cast(Of Data.
DataTable)() _ Where x.Rows. Count > 0 _ Order By x.Columns. Count _ Select x For Each dtTarget As var In query ... Next.
Something like: Target.Tables.Cast() and then make your query of that. And you should properly refactor you code into several lines to make it more readable. (this is C# - but I will translate it, 2 sec) Translated: Dim query = From x In Target.Tables.
Cast(Of Data. DataTable)() _ Where x.Rows. Count > 0 _ Order By x.Columns.
Count _ Select x For Each dtTarget As var In query ... Next.
That's the trick! Thank you very much. – Carter Aug 18 '10 at 19:37 You're welcome - happy to help :) – lasseespeholt Aug 18 '10 at 19:37.
I have the following VB.NET code that I am using to sort a Data. DataTable by column count. Is there a way to indicate that x is a Data.
DataTable without having to DirectCast it each time it is referenced (twice in this case) in the LINQ query?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.