You have an IronPython package called Entities. This package contains an Entity.py file that defines the Client class and the Address class.
If I run this program:
customer = Customer() print customer.GetType().AssemblyQualifiedName address = Address() print address.GetType().AssemblyQualifiedName
I get this output:
IronPython.NewTypes.System.Object_1$1, Snippets.scripting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null IronPython.NewTypes.System.Object_1$1, Snippets.scripting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
How it works? Why do both types have the same type name ( Object_1$1 )?
I need to use an API that requires a qualified assembly name for a type to instantiate this type. I would like to use it this way:
customer = aFactory.Create("Entities.Customer, Entities");
How do i do this? Can I specify a namespace name and assembly name?
thanks
source share