clrRefInt = clr.Reference[int](0) UInt32Max = System.UInt32.MaxValue Byte10 = System.Byte.Parse('10') SBytem10 = System.SByte.Parse('-10') Int1610 = System.Int16.Parse('10') Int16m20 = System.Int16.Parse('-20') UInt163 = System.UInt16.Parse('3') arrayInt = array_int((10, 20)) tupleInt = ((10, 20), ) listInt = ([10, 20], ) tupleLong1, tupleLong2 = ((long(10), long(20)), ), ((System.Int64.MaxValue, System.Int32.MaxValue * 2), ) arrayByte = array_byte((10, 20)) arrayObj = array_object(['str', 10]) @skipUnlessIronPython() class MethodBinder2Test(IronPythonTestCase): def setUp(self): super(MethodBinder2Test, self).setUp() self.load_iron_python_test() import System from IronPythonTest.BinderTest import I, C1, C3 class PT_I(I): pass class PT_C1(C1):
import clr import System clrRefInt = clr.Reference[int](0) UInt32Max = System.UInt32.MaxValue Byte10 = System.Byte.Parse('10') SBytem10 = System.SByte.Parse('-10') Int1610 = System.Int16.Parse('10') Int16m20 = System.Int16.Parse('-20') UInt163 = System.UInt16.Parse('3') arrayInt = array_int((10, 20)) tupleInt = ((10, 20), ) listInt = ([10, 20], ) tupleLong1, tupleLong2 = ((10L, 20L), ), ((System.Int64.MaxValue, System.Int32.MaxValue * 2),) arrayByte = array_byte((10, 20)) arrayObj = array_object(['str', 10]) @skipUnlessIronPython() class MethodBinder2Test(IronPythonTestCase): def setUp(self): super(MethodBinder2Test, self).setUp() self.load_iron_python_test() import System from IronPythonTest.BinderTest import I, C1, C3 class PT_I(I): pass class PT_C1(C1): pass