コード例 #1
0
ファイル: test_clr.py プロジェクト: TheDunn/flex-pypy
 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
ファイル: app_clr.py プロジェクト: TheDunn/flex-pypy
 def __init__(self, *args):
     import clr
     self.__cliobj__ = clr._CliObject_internal(self.__cliclass__, args)