----- Original Message -----
From: [email removed]
To: [email removed]
Sent: Monday, January 19, 2009 9:35 PM
Subject: Creating a new object from .NET framework [IronScheme:44600]
I am trying to create a new XmlTextReader object like this:
It will only look in the currently loaded assemblies in the AppDomain. To force load an assembly, use clr-reference. eg
(clr-reference something.dll) ; this could fail
(clr-reference "Fully.Qualified.AssemblyName, etc, etc")
This should work :) (I suggest using the FQ approach for GAC assemblies)
(define xml-text-reader (clr-new xmltextreader "sample.xml"))
Note: I might start enforcing case sensitivity on the clr-XXX forms.
and get an error:
&message: "type not found"
What is a good way to create a .NET object from IronScheme?
That's the correct way, else you can do it via adding a builtin function or so. I just finished up the ability to pinvoke for IronScheme :)