MethodBase.IsFinal Property gets a value indicating whether this method is final. : MethodBase « Reflection « VB.Net






MethodBase.IsFinal Property gets a value indicating whether this method is final.

 

Imports System
Imports System.Reflection
Imports Microsoft.VisualBasic

Public Class MyClass1
    Public Sub MyMethod()
    End Sub
    Public Shared Sub Main()
        Dim m As MethodBase = GetType(MyClass1).GetMethod("MyMethod")
        Console.WriteLine("The IsFinal property value of MyMethod is {0}.", m.IsFinal)
        Console.WriteLine("The IsVirtual property value of MyMethod is {0}.", m.IsVirtual)
    End Sub
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.IsPublic Property