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