1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 16:10:26 +02:00

Removed deprecated IOp* conformance, added missing consts and properties

This commit is contained in:
Brian Fiete 2020-08-29 07:10:04 -07:00
parent 783bdb15be
commit ffee0a2aa3
15 changed files with 67 additions and 30 deletions

View file

@ -3,7 +3,7 @@ using System;
namespace System
{
#unwarn
struct Int : int, IInteger, IHashable, IFormattable, IOpComparable, IIsNaN, IOpNegatable, IOpAddable, IOpSubtractable, IOpMultiplicable, IOpDividable
struct Int : int, IInteger, IHashable, IFormattable, IIsNaN
{
public enum ParseError
{
@ -12,6 +12,9 @@ namespace System
case InvalidChar(int partialResult);
}
public const int MaxValue = (sizeof(uint) == 8) ? 0x7FFFFFFFFFFFFFFFL : 0x7FFFFFFF;
public const int MinValue = (sizeof(uint) == 8) ? -0x8000000000000000L : -0x80000000;
public static int operator<=>(Self a, Self b)
{
return (SelfBase)a <=> (SelfBase)b;