I would like to call constructors on generic, for example to create a Dicttionary<Int,String> for C# interoperability. Is there an easy way to do this in Clojure-clr?
user=> (.AssemblyQualifiedName (.GetType (hlp/to-int32 5)))
"System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
user=> (def disConstr (symbol "System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561989],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]."))
#'user/disConstr
user=> (eval (list disConstr))
{}
user=> (type *1)
System.Collections.Generic.Dictionary`2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
user=>
As you see I get my Dictionary of the correct type. Is there a standard way to achieve the same result in clojure-clr?
If not, I shall can make a clean implementation of the above and share it as a lib if there is interest.
Cees.