-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDateTime.cs
32 lines (29 loc) · 857 Bytes
/
DateTime.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
using System;
using JSIL.Meta;
using JSIL.Proxy;
namespace JSIL.Proxies {
[JSProxy(
typeof(TimeSpan),
JSProxyMemberPolicy.ReplaceNone
)]
public abstract class TimeSpanProxy {
[JSIsPure]
public static TimeSpanProxy operator + (TimeSpanProxy lhs, TimeSpanProxy rhs) {
throw new InvalidOperationException();
}
[JSIsPure]
public static TimeSpanProxy operator - (TimeSpanProxy lhs, TimeSpanProxy rhs) {
throw new InvalidOperationException();
}
}
[JSProxy(
typeof(DateTime),
JSProxyMemberPolicy.ReplaceNone
)]
public abstract class DateTimeProxy {
[JSIsPure]
public static TimeSpanProxy operator - (DateTimeProxy lhs, DateTimeProxy rhs) {
throw new InvalidOperationException();
}
}
}