2010-12-04 16:14:34 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Object.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Object definition file *
|
|
|
|
|
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
|
|
|
|
|
********************************************************/
|
|
|
|
|
#ifndef _SYSTEM_OBJECT_
|
|
|
|
|
#define _SYSTEM_OBJECT_
|
|
|
|
|
|
|
|
|
|
namespace System
|
|
|
|
|
{
|
2012-03-29 22:02:43 +00:00
|
|
|
|
// Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes.
|
|
|
|
|
// This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
|
2010-12-04 16:14:34 +00:00
|
|
|
|
class Object
|
|
|
|
|
{
|
|
|
|
|
public:
|
2012-09-28 20:36:02 +00:00
|
|
|
|
virtual bool Equals(Object const * const obj) const;
|
2012-03-29 22:02:43 +00:00
|
|
|
|
static bool Equals(const Object* objA, const Object* objB);
|
|
|
|
|
virtual int GetHashCode() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
virtual int GetType() const =0;
|
|
|
|
|
static bool ReferenceEquals(const Object& objA, const Object& objB);
|
2012-03-29 22:02:43 +00:00
|
|
|
|
virtual const char* ToString() const;
|
2012-09-28 20:36:02 +00:00
|
|
|
|
|
|
|
|
|
virtual ~Object() { }
|
2010-12-04 16:14:34 +00:00
|
|
|
|
};
|
2012-09-28 20:36:02 +00:00
|
|
|
|
|
|
|
|
|
bool is(Object const * const obj1, Object const * const obj2);
|
2010-12-04 16:14:34 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_SYSTEM_OBJECT_
|