File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/System.Private.CoreLib Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
+ #nullable enable
5
6
using System . Runtime . CompilerServices ;
6
7
using System . Runtime . InteropServices ;
7
8
using System . Runtime . Versioning ;
@@ -44,12 +45,12 @@ public virtual string ToString()
44
45
// Equal to this. Equality is defined as object equality for reference
45
46
// types and bitwise equality for value types using a loader trick to
46
47
// replace Equals with EqualsValue for value types).
47
- public virtual bool Equals ( object obj )
48
+ public virtual bool Equals ( object ? obj )
48
49
{
49
50
return RuntimeHelpers . Equals ( this , obj ) ;
50
51
}
51
52
52
- public static bool Equals ( object objA , object objB )
53
+ public static bool Equals ( object ? objA , object ? objB )
53
54
{
54
55
if ( objA == objB )
55
56
{
@@ -63,7 +64,7 @@ public static bool Equals(object objA, object objB)
63
64
}
64
65
65
66
[ NonVersionable ]
66
- public static bool ReferenceEquals ( object objA , object objB )
67
+ public static bool ReferenceEquals ( object ? objA , object ? objB )
67
68
{
68
69
return objA == objB ;
69
70
}
Original file line number Diff line number Diff line change 2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
+ #nullable enable
5
6
using System . Runtime . CompilerServices ;
6
7
7
8
namespace System
You can’t perform that action at this time.
0 commit comments