1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

35 lines
803 B
C++

#ifndef _SYSTEM_BOOLEAN_
#define _SYSTEM_BOOLEAN_
#include "Interfaces.h"
namespace System
{
// Represents a Boolean value.
struct Boolean : public IComparable<Boolean>, public IEquatable<Boolean>, virtual Object
{
private:
bool value;
public:
Boolean(const Boolean &obj);
Boolean(const bool &obj); // Copy constructor
static const char* True;
static const char* False;
int CompareTo(const Boolean other) const;
bool Equals(const Boolean other) const;
bool Parse(char* str);
const char* ToString() const;
static const char* ToString(bool value);
bool operator!=(bool right) const;
bool operator!=(const Boolean right) const;
bool operator==(bool right) const;
bool operator==(const Boolean right) const;
};
}
#endif //_BOOLEAN_