예제 #1
0
 def test_cliobject(self):
     import clr
     obj = clr._CliObject_internal('System.Collections.ArrayList', [])
     max_index = obj.call_method('Add', [42])
     assert max_index == 0
예제 #2
0
파일: app_clr.py 프로젝트: xx312022850/pypy
 def __init__(self, *args):
     import clr
     self.__cliobj__ = clr._CliObject_internal(self.__fullyqualifiedname__, args)
예제 #3
0
 def test_cliobject(self):
     import clr
     obj = clr._CliObject_internal('System.Collections.ArrayList', [])
     max_index = obj.call_method('Add', [42])
     assert max_index == 0
예제 #4
0
 def __init__(self, *args):
     import clr
     self.__cliobj__ = clr._CliObject_internal(self.__cliclass__, args)