Changeset 383 for trunk/TestCase/SimpleTestCase/GCHandleTest.ab
- Timestamp:
- Nov 17, 2007, 9:34:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/GCHandleTest.ab
r299 r383 6 6 7 7 Sub TestMain() 8 Imports System.Runtime.InteropServices 9 8 10 Dim o = New Object 9 Dim gch = System.Runtime.InteropServices.GCHandle.Alloc(o)11 Dim gch = GCHandle.Alloc(o) 10 12 UnitTest("GCHandle.Alloc, Target", o.Equals(gch.Target)) 11 13 12 Dim ip = System.Runtime.InteropServices.GCHandle.ToIntPtr(gch)14 Dim ip = GCHandle.ToIntPtr(gch) 13 15 gch = Nothing 14 16 15 gch = System.Runtime.InteropServices.GCHandle.FromIntPtr(ip)17 gch = GCHandle.FromIntPtr(ip) 16 18 UnitTest("GCHandle - IntPtr", o.Equals(gch.Target)) 17 18 19 19 End Sub 20 20
Note:
See TracChangeset
for help on using the changeset viewer.