Did I find the right examples for you? yes no

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

src/m/a/main-HEAD/Languages/IronPython/Tests/interop/net/loadorder/t1d.py   main(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1a")
AreEqual(NamespaceOrType[int].Flag, "NamespaceOrType`1")
 
import NamespaceOrType
 
AssertError(TypeError, lambda: NamespaceOrType[int])    # indexing Namespace by type results in TypeError, expected string or SymbolId

src/m/a/main-HEAD/Languages/IronPython/Tests/interop/net/loadorder/t1c.py   main(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1a")
AreEqual(NamespaceOrType.Flag, "NamespaceOrType")
 
import NamespaceOrType
 
AssertError(AttributeError, lambda: NamespaceOrType.Flag)

src/m/a/main-HEAD/Languages/IronPython/Tests/interop/net/loadorder/t1b.py   main(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1c")
AreEqual(NamespaceOrType.C.Flag, "NamespaceOrType.C")
 
import NamespaceOrType
 
AssertError(AttributeError, lambda: NamespaceOrType.C)

src/m/a/main-HEAD/Languages/IronPython/Tests/interop/net/loadorder/t1a.py   main(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1b")
AreEqual(NamespaceOrType.C.Flag, "NamespaceOrType.C")
 
import NamespaceOrType
 
AssertError(AttributeError, lambda: NamespaceOrType.C)

src/i/r/ironpython3-HEAD/Tests/interop/net/loadorder/t1d.py   ironpython3(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1a")
AreEqual(NamespaceOrType[int].Flag, "NamespaceOrType`1")
 
import NamespaceOrType
 
AssertError(TypeError, lambda: NamespaceOrType[int])    # indexing Namespace by type results in TypeError, expected string or SymbolId

src/i/r/ironpython3-HEAD/Tests/interop/net/loadorder/t1c.py   ironpython3(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1a")
AreEqual(NamespaceOrType.Flag, "NamespaceOrType")
 
import NamespaceOrType
 
AssertError(AttributeError, lambda: NamespaceOrType.Flag)

src/i/r/ironpython3-HEAD/Tests/interop/net/loadorder/t1b.py   ironpython3(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1c")
AreEqual(NamespaceOrType.C.Flag, "NamespaceOrType.C")
 
import NamespaceOrType
 
AssertError(AttributeError, lambda: NamespaceOrType.C)

src/i/r/ironpython3-HEAD/Tests/interop/net/loadorder/t1a.py   ironpython3(Download)
# }
 
import NamespaceOrType
 
add_clr_assemblies("loadorder_1b")
AreEqual(NamespaceOrType.C.Flag, "NamespaceOrType.C")
 
import NamespaceOrType
 
AssertError(AttributeError, lambda: NamespaceOrType.C)