Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def get_cliobj(self):
     return dotnet.cliupcast(self.holder, System.Object)
Example #4
0
File: method.py Project: sota/pypy
 def get_cliobj(self):
     return dotnet.cliupcast(self.holder, System.Object)