Changeset 342 for trunk/bin/SubOperation/templates
- Timestamp:
- Sep 29, 2007, 12:44:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/SubOperation/templates/delegate_class.tab
r340 r342 15 15 For i = 0 To ELM(simpleDelegates.Count) 16 16 Dim sd = simpleDelegates[i] 17 #result# __delegate_dynamicmethod_call(sd.methodPtr, sd.object, #params#) 17 If sd.hasThisPtr Then 18 #result# __delegate_dynamicmethod_call(sd.methodPtr, sd.object, #params#) 19 Else 20 #result# __delegate_staticmethod_call(sd.methodPtr, #params#) 21 End If 18 22 Next 19 23 'End Sub … … 30 34 End Function 31 35 32 Static Function _CreateD elegate( object As Object, methodPtr As VoidPtr ) As #name#36 Static Function _CreateDynamicDelegate( object As Object, methodPtr As VoidPtr ) As #name# 33 37 Dim dg = New #name# 34 38 dg.simpleDelegates.Add( New System._SimpleDelegate( object, methodPtr ) ) 35 39 Return dg 36 40 End Function 41 42 Static Function _CreateStaticDelegate( methodPtr As VoidPtr ) As #name# 43 Dim dg = New #name# 44 dg.simpleDelegates.Add( New System._SimpleDelegate( methodPtr ) ) 45 Return dg 46 End Function 37 47 End Class 38 48 #namespace_end#
Note:
See TracChangeset
for help on using the changeset viewer.