mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-29 04:55:58 +02:00
Deprecating IOp* interfaces
This commit is contained in:
parent
74382fcb30
commit
99989d5472
15 changed files with 26 additions and 4 deletions
|
@ -23,51 +23,61 @@ namespace System
|
|||
{
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where bool : operator T == T`", false)]
|
||||
interface IOpEquals
|
||||
{
|
||||
public static bool operator==(Self val1, Self val2);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where bool : operator T == T2`", false)]
|
||||
interface IOpEquals<T>
|
||||
{
|
||||
public static bool operator==(Self val1, T val2);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where int : operator T <=> T`", false)]
|
||||
interface IOpComparable
|
||||
{
|
||||
static int operator<=>(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T + T`", false)]
|
||||
interface IOpAddable
|
||||
{
|
||||
static Self operator+(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T - T`", false)]
|
||||
interface IOpSubtractable
|
||||
{
|
||||
static Self operator-(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T * T`", false)]
|
||||
interface IOpMultiplicable
|
||||
{
|
||||
static Self operator*(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator T / T`", false)]
|
||||
interface IOpDividable
|
||||
{
|
||||
static Self operator/(Self lhs, Self rhs);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator -T`", false)]
|
||||
interface IOpNegatable
|
||||
{
|
||||
static Self operator-(Self value);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator implicit T2`", false)]
|
||||
interface IOpConvertibleTo<T>
|
||||
{
|
||||
static operator T(Self value);
|
||||
}
|
||||
|
||||
[Obsolete("Consider operator constraint such as `where T : operator implicit T2`", false)]
|
||||
interface IOpConvertibleFrom<T>
|
||||
{
|
||||
static operator Self(T value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue