MethodBase.IsPublic Property : MethodBase « Reflection « VB.Net






MethodBase.IsPublic Property

 

Imports System.Reflection


Class methodbase1
    Public Shared Function Main() As Integer
        Dim MyType As Type = Type.GetType("System.MulticastDelegate")
        Dim Mymethodbase As MethodBase = MyType.GetMethod("RemoveImpl", BindingFlags.NonPublic)
        Console.Write(Mymethodbase.ToString())
        Dim Myispublic As Boolean = Mymethodbase.IsPublic
        If Myispublic Then
            Console.Write("Mymethodbase is a public method")
        Else
            Console.Write("Mymethodbase is not a public method")
        End If
        Return 0
    End Function
End Class

   
  








Related examples in the same category

1.MethodBase.GetParameters Method gets the parameters of the specified method or constructor.
2.MethodBase.IsAbstract Property gets a value indicating whether the method is abstract.
3.MethodBase.IsAssembly Property
4.MethodBase.IsFinal Property gets a value indicating whether this method is final.