Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/u/c/UCSBsketch-HEAD/windows/SketchCade/SketchFramework/WpfSketchGUI.py   UCSBsketch(Download)
#clr.AddReference('Microsoft.Win32')
clr.AddReference('System.Drawing')
clr.LoadAssemblyFromFile('WPFFrameworkElementExtension.dll')
 
clr.AddReference('WPFFrameworkElementExtension')

src/m/a/main-HEAD/Languages/IronPython/Tests/test_clrload.py   main(Download)
def compileAndLoad(name, filename, *args):
    import clr
    sys.path.append(sys.exec_prefix)
    AreEqual(run_csc("/nologo /t:library " + ' '.join(args) + " /out:\"" + sys.exec_prefix + "\"\\" + name +".dll \"" + filename + "\""), 0)
    return clr.LoadAssemblyFromFile(name)

src/i/r/ironpython3-HEAD/Tests/test_clrload.py   ironpython3(Download)
def compileAndLoad(name, filename, *args):
    import clr
    sys.path.append(sys.exec_prefix)
    AreEqual(run_csc("/nologo /t:library " + ' '.join(args) + " /out:\"" + sys.exec_prefix + "\"\\" + name +".dll \"" + filename + "\""), 0)
    return clr.LoadAssemblyFromFile(name)