T
Trewq
Hello you,
Problem is that Type.GetFields does not return InnerList from a class that
inherits from CollectionBase.
I have a class:
Public Class MyCollection
Inherits System.Collections.CollectionBase
...
End Class
I want to get all the fields from this class:
Dim colFieldsInfo() As FieldInfo
Dim objMyCollection As New MyCollection
colFieldsInfo = objMyCollection .GetType.GetFields(BF.NonPublic, BF.Public,
BF.Instance, BF.Static)
My problem is that MyCollection.InnerList is not added to colFieldsInfo. Why
not?
Are the BindingFlags incorrect? Is there another reason?
Thanks,
Me.
Problem is that Type.GetFields does not return InnerList from a class that
inherits from CollectionBase.
I have a class:
Public Class MyCollection
Inherits System.Collections.CollectionBase
...
End Class
I want to get all the fields from this class:
Dim colFieldsInfo() As FieldInfo
Dim objMyCollection As New MyCollection
colFieldsInfo = objMyCollection .GetType.GetFields(BF.NonPublic, BF.Public,
BF.Instance, BF.Static)
My problem is that MyCollection.InnerList is not added to colFieldsInfo. Why
not?
Are the BindingFlags incorrect? Is there another reason?
Thanks,
Me.