DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Comparable.h
Go to the documentation of this file.
1
5
6#pragma once
7#include "System/Object.h"
8
9namespace DotNetDupe {
10 namespace System {
16 public:
18 virtual ~IComparable() = default;
19
23 virtual int CompareTo(const Object& obj) = 0;
24 };
25 }
26}
Base object class for DotNetDupe mirroring .NET System.Object.
Defines a generalized type-specific comparison method that a value type or class implements to order ...
Definition Comparable.h:15
virtual int CompareTo(const Object &obj)=0
Compares the current instance with another object and returns an integer that indicates whether the c...
virtual ~IComparable()=default
Virtual destructor for polymorphic cleanup.
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18