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

Merge pull request #1258 from disarray2077/icharacter

Add ICharacter interface
This commit is contained in:
Brian Fiete 2021-12-06 09:33:03 -08:00 committed by GitHub
commit 85bf96659d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View file

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

View file

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

View file

@ -1,7 +1,7 @@
namespace System
{
#unwarn
struct Char8 : char8, IHashable, IIsNaN
struct Char8 : char8, ICharacter, IHashable, IIsNaN
{
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)]
interface IOpEquals
{