ConstructorInfo.MemberType gets a MemberTypes value indicating that this member is a constructor. : ConstructorInfo « Reflection « VB.Net






ConstructorInfo.MemberType gets a MemberTypes value indicating that this member is a constructor.

 

Imports System
Imports System.Reflection
Imports Microsoft.VisualBasic

Class Mymemberinfo

    Public Shared Function Main() As Integer
        Dim MyType As Type = Type.GetType("System.Reflection.PropertyInfo")
        Dim Mymemberinfoarray As MemberInfo() = MyType.GetMembers()


        Dim counter As Integer
        For counter = 0 To Mymemberinfoarray.Length - 1
            Console.Write(ControlChars.CrLf + counter.ToString() + ". " _
               + Mymemberinfoarray(counter).Name _
               + " Member type - " _
               + Mymemberinfoarray(counter).MemberType.ToString())
        Next counter
        Return 0
    End Function
End Class

   
  








Related examples in the same category

1.ConstructorInfo Class represents the attributes of a class constructor