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:
parent
b0aa27c82c
commit
9cf3d54a9d
4 changed files with 7 additions and 3 deletions
|
@ -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.
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue