-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Description
The article says:
The System.ValueType implementation of Equals uses reflection because it must be able to determine what the fields are in any struct.
But if we look at the code:
We can see, that it does bitwise comparison if all fields are also value types.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 433a56c8-1c93-32fb-eb1d-8395a9760c65
- Version Independent ID: e3f35410-f243-4309-1436-89ade7a34d19
- Content: Objects - C# Programming Guide
- Content Source: docs/csharp/programming-guide/classes-and-structs/objects.md
- Product: dotnet-csharp
- Technology: csharp-fundamentals
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn