Pages

Monday, 10 May 2010

Quickie: IKVM.NET - Specifying a .NET class to be loaded via Class.forName

This has taken me a little while to work out. The information is out there but not in an easy to digest way. If you want to load a .NET class in Java via Class.forName you need the Assembly Qualified Name. That is 
"Namespace.Classname, Assembly, Version, Culture, PublicKeyToken"

 The simplest way to get this is via

typeof(Namespace.Classname).AssemblyQualifiedName

No comments:

Post a Comment