Changeset 232 for Include/Classes/System/Object.ab
- Timestamp:
- May 6, 2007, 8:08:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/Object.ab
r224 r232 17 17 End Function 18 18 Static Function Equals( objectA As Object, objectB As Object ) As Boolean 19 If VarPtr(objectA) = 0/*objectA = Nothing*/ Then20 Return VarPtr(objectB) = 0'objectB = Nothing19 If ObjPtr(objectA) = NULL /*objectA = Nothing*/ Then 20 Return ObjPtr(objectB) = NULL 'objectB = Nothing 21 21 Else 22 22 Return objectA.Equals( objectB ) … … 26 26 ' 参照先が等しいか判断する 27 27 Static Function ReferenceEquals(objectA As Object, objectB As Object) As Boolean 28 If VarPtr( objectA ) = VarPtr( objectB) Then28 If ObjPtr( objectA ) = ObjPtr( objectB) Then 29 29 Return True 30 30 Else
Note:
See TracChangeset
for help on using the changeset viewer.