|
DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
|
Supports all classes in the DotNetDupe class hierarchy. More...
#include <Object.h>
Public Member Functions | |
| virtual | ~Object ()=default |
| Virtual destructor ensuring polymorphic cleanup. | |
| virtual bool | Equals (const Object &obj) const |
| Determines whether the specified Object is equal to the current Object. | |
| virtual int | GetHashCode () const |
| Serves as the default hash function. | |
| bool | operator== (const Object &obj) const |
| Determines reference equality between two objects. | |
| char * | ToStringA () const |
| Returns narrow-character string representation. | |
| wchar_t * | ToStringW () const |
| Returns wide-character string representation. | |
Static Public Member Functions | |
| static bool | Equals (const Object &obj1, const Object &obj2) |
| Static helper determining whether two object instances are equal. | |
Supports all classes in the DotNetDupe class hierarchy.
Provides low-level identity, reference equality, hash code generation, and string representation services for derived types in the library. Thread-safe for const operations; derived classes must document their concurrency guarantees.
|
virtualdefault |
Virtual destructor ensuring polymorphic cleanup.
References DOTNETDUPE_API, Equals(), GetHashCode(), ToStringA(), and ToStringW().
|
virtual |
Determines whether the specified Object is equal to the current Object.
| obj | Object to compare with current instance. |
Virtual equality delegates to operator== by default for derived overrides.
Definition at line 11 of file Object.cpp.
Referenced by ~Object(), and DotNetDupe::System::Diagnostics::EtwLogReader::GetEventChannels().
Static helper determining whether two object instances are equal.
| obj1 | First object to compare. |
| obj2 | Second object to compare. |
Delegate to equality operator between instances.
Definition at line 16 of file Object.cpp.
|
virtual |
Serves as the default hash function.
Return default zero base; specialized derived classes override with custom hash algorithms.
Definition at line 21 of file Object.cpp.
Referenced by ~Object().
| bool DotNetDupe::System::Object::operator== | ( | const Object & | obj | ) | const |
Determines reference equality between two objects.
| obj | Object to compare with current instance. |
Compare underlying memory addresses to determine pointer-level identity.
Definition at line 6 of file Object.cpp.
| char * DotNetDupe::System::Object::ToStringA | ( | ) | const |
Returns narrow-character string representation.
Base object returns null narrow-character representation.
Definition at line 31 of file Object.cpp.
Referenced by ~Object().
| wchar_t * DotNetDupe::System::Object::ToStringW | ( | ) | const |
Returns wide-character string representation.
Base object returns null wide-character representation.
Definition at line 26 of file Object.cpp.
Referenced by ~Object().