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






MethodBase.IsAssembly Property

 

Imports System
Imports System.Reflection

Public class Example

    Public Sub m_Public() 
    End Sub
    Friend Sub m_Friend() 
    End Sub
    Protected Sub m_Protected() 
    End Sub
    Protected Friend Sub m_Protected_Friend() 
    End Sub

    Public Shared Sub Main()
        For Each m As MethodBase In GetType(Example).GetMethods( _
            BindingFlags.Instance Or BindingFlags.NonPublic Or BindingFlags.Public)
            If Left(m.Name, 1) = "m"

                Console.WriteLine(m.Name)
                Console.WriteLine(m.IsPublic)
                Console.WriteLine(m.IsAssembly)
                Console.WriteLine(m.IsFamily)
                Console.WriteLine(m.IsFamilyOrAssembly)
                Console.WriteLine(m.IsFamilyAndAssembly)
            End If
        Next
    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.IsFinal Property gets a value indicating whether this method is final.
4.MethodBase.IsPublic Property