[Ironpython-users] calling clr.ImportExtensions from C#

Hernan M. F. hfoffani at gmail.com
Tue Mar 24 17:33:02 CET 2015


Hi,

For a custom IronPython REPL I want to “inject” some CLR extensions.
Until now we are doing the standard:
“””
import clr, System
clr.AddReference(“System.Core”)
clr.ImportExtensions(System.Linq)
“””
But I would like to avoid it. Although I know how to AddReference to System.Core from C#
and to get the Python Language Context I couldn’t find a way to call ImportExtensions from the Console.cs.

Any help will be appreciated.

Hernán M. Foffani

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150324/371442a1/attachment.html>


More information about the Ironpython-users mailing list