| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -115,6 +115,16 @@ public static int[] TestOverloadedParams(string v, params int[] args) | |||
| 115 | 115 | return args; | |
| 116 | 116 | } | |
| 117 | 117 | ||
| 118 | + public static int TestOverloadedObject(int i) | ||
| 119 | + { | ||
| 120 | + return i; | ||
| 121 | + } | ||
| 122 | + | ||
| 123 | + public static object TestOverloadedObject(object o) | ||
| 124 | + { | ||
| 125 | + return o; | ||
| 126 | + } | ||
| 127 | + | ||
| 118 | 128 | public static int[] TestOverloadedParams(int v, int[] args) | |
| 119 | 129 | { | |
| 120 | 130 | return args; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -341,6 +341,10 @@ def test(): | |||
| 341 | 341 | # None cannot be converted to a value type like int, long, etc. | |
| 342 | 342 | self.assertRaises(TypeError, test) | |
| 343 | 343 | ||
| 344 | + def testObjectInParam(self): | ||
| 345 | + MethodTest.TestOverloadedObject(5) | ||
| 346 | + MethodTest.TestOverloadedObject("test") | ||
| 347 | + | ||
| 344 | 348 | def testObjectOutParams(self): | |
| 345 | 349 | """Test use of object out-parameters.""" | |
| 346 | 350 | result = MethodTest.TestObjectOutParams("hi", MethodTest()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments