Display the set of assemblies our assemblies reference : MethodInfo « Reflection « VB.Net






Display the set of assemblies our assemblies reference

 


Imports System
Imports System.Reflection

Module Module1

    Sub Main()
        Dim a As [Assembly] = System.Reflection.Assembly.GetExecutingAssembly()

        Dim an As AssemblyName

        For Each an In a.GetReferencedAssemblies()
            Console.WriteLine(an.Name)
            Console.WriteLine(an.Version)
            Console.WriteLine(an.CultureInfo.Name)
            Console.WriteLine(BitConverter.ToString(an.GetPublicKeyToken))
        Next

    End Sub


End Module

   
  








Related examples in the same category

1.MethodInfo.GetBaseDefinition
2.MethodInfo.MemberType Property indicates that this member is a method.
3.MethodInfo.ReturnType gets the return type of this method.
4.MemberInfo Class contains information about the attributes of a member
5.Display information about each assembly loading into this AppDomain.
6.Get members from a Type
7.MemberInfo.DeclaringType Property gets the class that declares this member.
8.MemberInfo.GetCustomAttributes
9.MemberInfo.MemberType indicates the type of the member, method, constructor, event.
10.MemberInfo.Module Property gets the module
11.MemberInfo.Name gets the name of the current member.
12.MemberInfo.ReflectedType Property gets the class object that was used to obtain this instance of MemberInfo.
13.PropertyInfo Class represents the attributes of a property and provides access to property metadata.