コード例 #1
0
ファイル: test_dotnet.py プロジェクト: sota/pypy-old
 def fn(flag):
     a = ArrayList()
     a.Add(None)
     if flag:
         obj = cliupcast(a, System.Object)
     else:
         obj = box(42)
     b = clidowncast(obj, ArrayList)
     return b.get_Item(0)
コード例 #2
0
ファイル: test_dotnet.py プロジェクト: sota/pypy
 def fn(flag):
     a = ArrayList()
     a.Add(None)
     if flag:
         obj = cliupcast(a, System.Object)
     else:
         obj = box(42)
     b = clidowncast(obj, ArrayList)
     return b.get_Item(0)
コード例 #3
0
 def get_cliobj(self):
     return dotnet.cliupcast(self.holder, System.Object)
コード例 #4
0
ファイル: method.py プロジェクト: sota/pypy
 def get_cliobj(self):
     return dotnet.cliupcast(self.holder, System.Object)