R
Roger Odermatt
Hello
I have the follow Code.
---------------------------------
Dim myType As Type
myType = BusinessObject.GetType
Dim myP As System.Reflection.PropertyInfo
myP = myType.GetProperty("Codes")
Dim myObject As Object
myObject = myP.GetValue(BusinessObject, Nothing)
Dim myType2 As Type
myType2 = myObject.GetType
Dim myP2 As System.Reflection.PropertyInfo
myP2 = myType2.GetProperty("Addresses")
Dim myCol As Server.cCollectionBase(Of Server.cAddress)
myCol = myP2.GetValue(myObject, Nothing)
---------------------------------
Now can i make this line
[Dim myCol As Server.cCollectionBase(Of Server.cAddress)]
so that i can set the Of-Statement dynamic from the type of myP2 (not Of
Server.cAddress / separate Of myP2.GetType) ? When yes how make that?
regrads
Roger
I have the follow Code.
---------------------------------
Dim myType As Type
myType = BusinessObject.GetType
Dim myP As System.Reflection.PropertyInfo
myP = myType.GetProperty("Codes")
Dim myObject As Object
myObject = myP.GetValue(BusinessObject, Nothing)
Dim myType2 As Type
myType2 = myObject.GetType
Dim myP2 As System.Reflection.PropertyInfo
myP2 = myType2.GetProperty("Addresses")
Dim myCol As Server.cCollectionBase(Of Server.cAddress)
myCol = myP2.GetValue(myObject, Nothing)
---------------------------------
Now can i make this line
[Dim myCol As Server.cCollectionBase(Of Server.cAddress)]
so that i can set the Of-Statement dynamic from the type of myP2 (not Of
Server.cAddress / separate Of myP2.GetType) ? When yes how make that?
regrads
Roger