I've a list of object. I want get all values in a field I've dynamically. I explain more. I read all property of my dynamic object. When I found an image field, i want obtain all images in my list of object.
For Each col In Ret.StructTbl.LstCol
If col.EstImage Then
col.Liste = GetType(List(Of Eleve)).GetProperty(col.SQLName).GetValue(Ret.LstDatas.LstObj, Nothing)
End If
Next
I use it (vb.net), but I've
La référence d'objet n'est pas définie à une instance d'un objet
I think it's because I've some null value or I take a wrong way? It's the follow of filter and sorter dynamic null value
My eleve Stucture
Public Class Eleve
<TableFullOption.TFOAttribute("Key")> Property Id As Integer
<TableFullOption.TFOAttribute("Image")> Property Img As String
Property Name As String
Property Major As Boolean
<TableFullOption.TFOAttribute("FK_Sexe")> Property Sex As Integer
Property English As Nullable(Of Integer)
Property Japanese As Nullable(Of Double)
Property Calculus As Decimal
Property Geometry As Integer
End Class
and col.SQLName= "Img"
Can you help me... I want to make a list of all image I've (mypicture.jpg, img1.png ...)