예제 #1
0
 public JavaScriptBoolean ToBoolean()
 {
     if (this is JavaScriptBoolean)
     {
         return((JavaScriptBoolean)this);
     }
     else
     {
         return(JavaScriptBoolean.ValueOf(this.ToString()));
     }
 }
예제 #2
0
 public virtual JavaScriptBoolean Equals(JavaScriptObject obj, Scope scope, JavaScriptObject thisObject)
 {
     return(JavaScriptBoolean.ValueOf(this == obj));
 }
예제 #3
0
 public static JavaScriptBoolean ValueOf(string str)
 {
     return(JavaScriptBoolean.ValueOf(Boolean.Parse(str)));
 }
예제 #4
0
 public override JavaScriptBoolean Equals(JavaScriptObject obj, Scope scope, JavaScriptObject thisObject)
 {
     return(JavaScriptBoolean.ValueOf(this.CompareTo(obj) == 0));
 }