vendredi 6 février 2015

Reflection/Linq: Find class inside another in vb.net

I have the next class in my code:



Public Class MyClass
Public ClassMyDictionary
Public Property something As String = "xxxxx"
End Class

Public Property dbId As Integer
Public Property dbDescription As String
Public Property Activate As Boolean
...


End Class


What I am trying to do is to look for propertyInfo of MyDictionary class using Linq.


I tried to use



Dim propertyInfo = typeDest.GetProperty("MyDictionary", BindingFlags.IgnoreCase Or BindingFlags.Public Or BindingFlags.Instance)


But is returning me Nothing.


Is it possible to do?






Aucun commentaire:

Enregistrer un commentaire