1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Tom Lint 7e74ae8683 Added System::Type
Added TypeInfo for all relevant types
Added comments
Updated DependencyProperty to work with System::Type
Fixed casing on PropertyMetadata
2013-07-12 21:30:13 +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 Type 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_