mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
39 lines
872 B
C
39 lines
872 B
C
|
#ifndef _SYSTEM_INT16_
|
||
|
#define _SYSTEM_INT16_
|
||
|
|
||
|
#include <System/Interfaces.h>
|
||
|
|
||
|
namespace System
|
||
|
{
|
||
|
class String;
|
||
|
|
||
|
// Represents a signed, 16-bit integer.
|
||
|
struct Int16 : IComparable<Int16>, IEquatable<Int16>, Object
|
||
|
{
|
||
|
private:
|
||
|
short value;
|
||
|
|
||
|
public:
|
||
|
static const short MaxValue;
|
||
|
static const short MinValue;
|
||
|
short getValue();
|
||
|
|
||
|
Int16(const Int16 &obj);
|
||
|
Int16(const short &obj);
|
||
|
|
||
|
int CompareTo(const Int16 other) const;
|
||
|
bool Equals(const Object* obj) const;
|
||
|
bool Equals(const Int16 other) const;
|
||
|
int GetHashCode() const;
|
||
|
int GetType() const;
|
||
|
const char* ToString() const;
|
||
|
static const char* ToString(const short value) const;
|
||
|
static bool TryParse(const String& str, out short result);
|
||
|
|
||
|
bool operator==(const Int16 right) const;
|
||
|
bool operator!=(const Int16 right) const;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif //_SYSTEM_INT16_
|