M
Miguel
I ran into a very strange problem today. I'm trying to invoke a
property from a very basic class. I always get a NotSupportedException.
Anyone?
Public Class A
Public Readonly Property val as String()
Get
return "Testing"
End Get
End Property
End Class
....
Dim t as Type = GetType(A)
Dim k as new A
Dim ret as Object =
t.InvokeMember("val",BindingFlags.GetProperty,Nothing,k,Nothing)
property from a very basic class. I always get a NotSupportedException.
Anyone?
Public Class A
Public Readonly Property val as String()
Get
return "Testing"
End Get
End Property
End Class
....
Dim t as Type = GetType(A)
Dim k as new A
Dim ret as Object =
t.InvokeMember("val",BindingFlags.GetProperty,Nothing,k,Nothing)