-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNumbers.cs
124 lines (106 loc) · 3.98 KB
/
Numbers.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#pragma warning disable 0114
using System;
using JSIL.Meta;
using JSIL.Proxy;
namespace JSIL.Proxies {
[JSProxy(
new [] {
typeof(SByte), typeof(Int16), typeof(Int32),
typeof(Byte), typeof(UInt16), typeof(UInt32)
},
JSProxyMemberPolicy.ReplaceDeclared
)]
public abstract class IntegerProxy {
[JSReplacement("($this).toString()")]
public string ToString () {
return base.ToString();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, $format, null)")]
public string ToString (string format) {
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, $format, $formatProvider)")]
public string ToString (string format, IFormatProvider formatProvider) {
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, null, $formatProvider)")]
public string ToString(IFormatProvider formatProvider)
{
throw new InvalidOperationException();
}
[JSIsPure]
[JSReplacement("($this === $rhs)")]
public bool Equals (IntegerProxy rhs) {
throw new InvalidOperationException();
}
[JSReplacement("JSIL.CompareValues($this, $rhs)")]
public int CompareTo (AnyType rhs) {
throw new InvalidOperationException();
}
}
[JSProxy(
new[] {
typeof(Single), typeof(Double), typeof(Decimal)
},
JSProxyMemberPolicy.ReplaceDeclared
)]
public abstract class NumberProxy {
[JSReplacement("($this).toString()")]
public string ToString () {
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, $format, null)")]
public string ToString (string format) {
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, $format, $formatProvider)")]
public string ToString (string format, IFormatProvider formatProvider) {
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, null, $formatProvider)")]
public string ToString(IFormatProvider formatProvider)
{
throw new InvalidOperationException();
}
[JSReplacement("isNaN($value)")]
public static bool IsNaN (NumberProxy value) {
throw new InvalidOperationException();
}
[JSIsPure]
[JSReplacement("($this === $rhs)")]
public bool Equals (NumberProxy rhs) {
throw new InvalidOperationException();
}
[JSReplacement("JSIL.CompareValues($this, $rhs)")]
public int CompareTo (AnyType rhs) {
throw new InvalidOperationException();
}
}
[JSProxy(
new[] {
typeof(UInt64), typeof(Int64)
},
JSProxyMemberPolicy.ReplaceDeclared
)]
public abstract class LargeIntegerProxy {
[JSReplacement("($this).toString()")]
public string ToString () {
return base.ToString();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, $format, null)")]
public string ToString(string format)
{
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, $format, $formatProvider)")]
public string ToString(string format, IFormatProvider formatProvider)
{
throw new InvalidOperationException();
}
[JSReplacement("$typeof(this).__PublicInterface__.$$ToString($this, null, $formatProvider)")]
public string ToString(IFormatProvider formatProvider)
{
throw new InvalidOperationException();
}
}
}