samedi 29 février 2020

Reflection on Nested Types adds methods. Is this a bug?

I'm using reflection to obtain methods on a nested type/s and they always have extra methods that don't exist.

The extra methods returned are:

Equals, GetHashCode, GetType, ToString

Is this a bug in .Net or am I missing something? It seems to happen with other nested types also, so I'm trying to understand why?

Public Class TestHasNested

    Public Property bla As String

    Public Class NestedItem

        Public Property MyProperty As Integer

    End Class
End Class




Aucun commentaire:

Enregistrer un commentaire