Α
αβθ-Coder
Guest
Hi all;
I'm looking to be able to iterate through all the members of a class, or an object thereof. For example, if I could perform the following (using pseudo code):
Private Structure MemberInfoType
Dim Name As String
Dim ItsType As Type
Dim ItsValue As Object
End Struct
Dim membersInfo As New Collection(Of MemberInfoType)
For Each member As Object In System.Diagnostics.Process
Dim memInfo As New MemberInfoType
With memInfo
.Name = member.Name
.ItsType = member.GetType
.ItsValue = member.Value
End With
membersInfo.Add(memInfo)
Next
Is this possible? Thanks much to all!
Glenn T. Kitchen
Glenn T. Kitchen VB.NET Forums
Continue reading...
I'm looking to be able to iterate through all the members of a class, or an object thereof. For example, if I could perform the following (using pseudo code):
Private Structure MemberInfoType
Dim Name As String
Dim ItsType As Type
Dim ItsValue As Object
End Struct
Dim membersInfo As New Collection(Of MemberInfoType)
For Each member As Object In System.Diagnostics.Process
Dim memInfo As New MemberInfoType
With memInfo
.Name = member.Name
.ItsType = member.GetType
.ItsValue = member.Value
End With
membersInfo.Add(memInfo)
Next
Is this possible? Thanks much to all!
Glenn T. Kitchen
Glenn T. Kitchen VB.NET Forums
Continue reading...