Answer 1
Hi,
Please try the following.
Dim Results = ds.Tables(0).AsEnumerable().Select( Function(mr)
Dim temp as new MyClass1()
temp.ID = If(Not IsDBNull(mr.Field(Of Integer)("ID")), mr.Field(Of Integer)("ID"), 0)
temp.MyGenericListProp.Add( New MyOtherClass With { _
.ID = If(Not IsDBNull(mc.Field(Of Integer)("SecondaryID")), mc.Field(Of Integer)("SecondaryID"), 0),
.Value1 = If(Not IsDBNull(mc.Field(Of List(Of String))("Value1")), mc.Field(Of List(Of String))("Value1"), String.Empty),
.Value2 = If(Not IsDBNull(mc.Field(Of List(Of String))("Value2")), mc.Field(Of List(Of String))("Value2"), String.Empty)})
Return temp
End Function)
Hope it helps.
Regards,
Nyi Nyi