Geeks With Blogs
Saqib Ullah BootStrapper Know How

This is my first coding blog for IronPython in which I convert my old blog List of all Form from an Assembly in IronPython code. I use Visual Studio 2005 IronPython Console template so you need to add the following lines of code explicitly when use are writing code on command prompt to add reference of System.dll

import clr


Here are the few bytes that IronPython developers use when they want to get a list of types from particular assembly.

from System import *
from System.Reflection import *

def GetTypeList(assemblyName, assemblyVersion):

    _assemblyname = AssemblyName()   

    _assemblyname.Name = assemblyName   

    v = Version(assemblyVersion) 

    _assemblyname.Version = v;   

    assembly = Assembly.Load(_assemblyname)   

    Console.WriteLine("Listing all types in {0}", assembly.FullName) 


    types = assembly.GetTypes()   

    for type in types:


In the preceding codes I test the IronMath.dll itself with it version ‘’. For C# version of this code read this blog.

Posted on Sunday, February 17, 2008 10:25 AM IronPython | Back to top

Related Posts on Geeks With Blogs Matching Categories

Comments on this post: Get list of types from assembly in IronPython

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Saqib Ullah | Powered by: