-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathBoolean.cs
More file actions
36 lines (28 loc) · 964 Bytes
/
Boolean.cs
File metadata and controls
36 lines (28 loc) · 964 Bytes
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
//TODO! Disable missing XML comments.
#pragma warning disable CS1591
using CSharpToJavaScript.Utils;
namespace CSharpToJavaScript.APIs.JS.Ecma;
//https://262.ecma-international.org/14.0/#sec-boolean-objects
[To(ToAttribute.Default)]
public partial class Boolean : BooleanPrototype
{
public dynamic? Value { get; set; }
public static implicit operator Boolean(bool value) { return new Boolean(value) { Value = value }; }
public static implicit operator bool(Boolean value) { return new Boolean(value) { Value = value }; }
[To(ToAttribute.FirstCharToLowerCase)]
public static BooleanPrototype Prototype { get; } = new();
public Boolean(dynamic value) { }
}
[To(ToAttribute.FirstCharToLowerCase)]
public partial class BooleanPrototype : FunctionPrototype
{
public BooleanPrototype() { }
public new string ToString()
{
throw new System.NotImplementedException();
}
public new bool ValueOf()
{
throw new System.NotImplementedException();
}
}