Changeset 195 for Include/Classes/System/Object.ab
- Timestamp:
- Mar 30, 2007, 4:22:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Object.ab
r70 r195 1 1 Class Object 2 3 ' 実行時型情報 4 typeInfo As TypeInfo 5 2 6 Public 3 7 … … 8 12 9 13 ' 2つのオブジェクトが等しいかどうかを判断する 10 Virtual Function Equals( ByRef objAs Object ) As Boolean11 If VarPtr( This ) = VarPtr( obj) Then14 Virtual Function Equals( object As Object ) As Boolean 15 If This.GetHashCode() = object.GetHashCode() Then 12 16 Return True 13 17 Else … … 15 19 End If 16 20 End Function 17 Static Function Equals( ByRef objA As Object, ByRef objB As Object ) As Boolean18 Return obj A.Equals( objB )21 Static Function Equals( objectA As Object, objectB As Object ) As Boolean 22 Return objectA.Equals( objectB ) 19 23 End Function 20 24 … … 28 32 Return "Object" 29 33 End Function 34 35 /* 36 Function Operator Downcast() As VoidPtr 37 End Function 38 */ 30 39 End Class
Note:
See TracChangeset
for help on using the changeset viewer.