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

Add ICharacter interface

This commit is contained in:
disarray2077 2021-12-04 14:32:44 -03:00
parent b0aa27c82c
commit 9cf3d54a9d
4 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,6 @@
namespace System namespace System
{ {
struct Char16 : char16, IHashable, IIsNaN struct Char16 : char16, ICharacter, IHashable, IIsNaN
{ {
const int UNICODE_PLANE00_END = 0x00ffff; const int UNICODE_PLANE00_END = 0x00ffff;
// The starting codepoint for Unicode plane 1. Plane 1 contains 0x010000 ~ 0x01ffff. // The starting codepoint for Unicode plane 1. Plane 1 contains 0x010000 ~ 0x01ffff.

View file

@ -1,6 +1,6 @@
namespace System namespace System
{ {
struct Char32 : char32, IHashable, IIsNaN struct Char32 : char32, ICharacter, IHashable, IIsNaN
{ {
public int GetHashCode() public int GetHashCode()
{ {

View file

@ -1,7 +1,7 @@
namespace System namespace System
{ {
#unwarn #unwarn
struct Char8 : char8, IHashable, IIsNaN struct Char8 : char8, ICharacter, IHashable, IIsNaN
{ {
bool IIsNaN.IsNaN bool IIsNaN.IsNaN
{ {

View file

@ -23,6 +23,10 @@ namespace System
{ {
} }
interface ICharacter
{
}
[Obsolete("Consider operator constraint such as `where bool : operator T == T`", false)] [Obsolete("Consider operator constraint such as `where bool : operator T == T`", false)]
interface IOpEquals interface IOpEquals
{ {