DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
Object.h
Go to the documentation of this file.
1
3
4
#pragma once
5
#include "
Common.h
"
6
#include <cstddef>
7
8
namespace
DotNetDupe
{
9
namespace
System
{
18
class
Object
{
19
public
:
21
DOTNETDUPE_API
virtual
~Object
() =
default
;
22
26
DOTNETDUPE_API
bool
operator ==
(
const
Object
& obj)
const
;
27
31
DOTNETDUPE_API
virtual
bool
Equals
(
const
Object
& obj)
const
;
32
37
DOTNETDUPE_API
static
bool
Equals
(
const
Object
& obj1,
const
Object
& obj2);
38
41
DOTNETDUPE_API
virtual
int
GetHashCode
()
const
;
42
45
DOTNETDUPE_API
wchar_t
*
ToStringW
()
const
;
46
49
DOTNETDUPE_API
char
*
ToStringA
()
const
;
50
};
51
55
DOTNETDUPE_API
void
*
AllocateCollectionBuffer
(
size_t
size);
56
59
DOTNETDUPE_API
void
FreeCollectionBuffer
(
void
* p);
60
}
61
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::Object::Equals
virtual bool Equals(const Object &obj) const
Determines whether the specified Object is equal to the current Object.
Definition
Object.cpp:11
DotNetDupe::System::Object::ToStringA
char * ToStringA() const
Returns narrow-character string representation.
Definition
Object.cpp:31
DotNetDupe::System::Object::~Object
virtual ~Object()=default
Virtual destructor ensuring polymorphic cleanup.
DotNetDupe::System::Object::operator==
bool operator==(const Object &obj) const
Determines reference equality between two objects.
Definition
Object.cpp:6
DotNetDupe::System::Object::ToStringW
wchar_t * ToStringW() const
Returns wide-character string representation.
Definition
Object.cpp:26
DotNetDupe::System::Object::GetHashCode
virtual int GetHashCode() const
Serves as the default hash function.
Definition
Object.cpp:21
DotNetDupe::System
Definition
Action.h:11
DotNetDupe::System::AllocateCollectionBuffer
void * AllocateCollectionBuffer(size_t size)
Internal memory allocator for generic collections.
Definition
Object.cpp:39
DotNetDupe::System::FreeCollectionBuffer
void FreeCollectionBuffer(void *p)
Frees collection buffer allocated with AllocateCollectionBuffer.
Definition
Object.cpp:44
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Object.h
Generated by
1.18.0