1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 66a012689c Changed Object::GetType to static
DependencyProperties can now (sort of) be registered
2013-07-11 17:25:49 +02:00

45 lines
1.1 KiB
C++

/*****************************************************************************
* Boolean.h *
* *
* XFX System::Boolean definition file *
* Copyright (c) XFX Team. All Rights Reserved *
*****************************************************************************/
#ifndef _SYSTEM_BOOLEAN_
#define _SYSTEM_BOOLEAN_
#include "Interfaces.h"
namespace System
{
class String;
// Represents a Boolean value.
struct Boolean : IComparable<Boolean>, IEquatable<Boolean>, Object
{
private:
bool value;
public:
Boolean();
Boolean(const Boolean &obj);
Boolean(const bool &obj);
static const char* TrueString;
static const char* FalseString;
int CompareTo(const Boolean other) const;
bool Equals(Object const * const obj) const;
bool Equals(const Boolean other) const;
static int GetType();
static bool Parse(const String& str);
const String& ToString() const;
static const String& ToString(bool value);
operator bool() const;
bool operator!=(const Boolean& right) const;
bool operator==(const Boolean& right) const;
};
}
#endif //_SYSTEM_BOOLEAN_