Class GlobalObject
- Namespace
- CSharpToJavaScript.APIs.JS.Ecma
- Assembly
- CSharpToJavaScript.dll
[To("FirstCharToLowerCase")]
public class GlobalObject
- Inheritance
-
GlobalObject
- Derived
- Inherited Members
Constructors
GlobalObject()
public GlobalObject()
Methods
Comma(dynamic, dynamic)
Translates this method into the "," operator. (As a binary)
[Binary(",")]
public static dynamic Comma(dynamic expr1, dynamic expr2)
Parameters
expr1dynamicFirst expression.
expr2dynamicSecond expression.
Returns
- dynamic
dynamic
Remarks
DecodeURI(string)
[To("FirstCharToLowerCase")]
public static string DecodeURI(string encodedURI)
Parameters
encodedURIstring
Returns
DecodeURIComponent(string)
[To("FirstCharToLowerCase")]
public static string DecodeURIComponent(string encodedURIComponent)
Parameters
encodedURIComponentstring
Returns
Delete(dynamic)
Translates this method into the "delete" operator.
[Unary("delete ")]
public static bool Delete(dynamic arg)
Parameters
argdynamicobject.property
Returns
- bool
true for all cases except when the property is an own non-configurable property, in which case false is returned in non-strict mode.
Remarks
EncodeURI(string)
[To("FirstCharToLowerCase")]
public static string EncodeURI(string uri)
Parameters
uristring
Returns
EncodeURIComponent(string)
[To("FirstCharToLowerCase")]
public static string EncodeURIComponent(string uriComponent)
Parameters
uriComponentstring
Returns
EqualsStrict(dynamic, dynamic)
Translates this method into the "===" operator.
[Binary("===")]
public static bool EqualsStrict(dynamic left, dynamic right)
Parameters
leftdynamicx
rightdynamicy
Returns
Remarks
See mdn: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
Escape(string)
[To("FirstCharToLowerCase")]
public static string Escape(string str)
Parameters
strstring
Returns
Eval(string)
[To("FirstCharToLowerCase")]
public static dynamic Eval(string x)
Parameters
xstring
Returns
- dynamic
In(dynamic, dynamic)
Translates this method into the "in" operator.
[Binary("in")]
public static bool In(dynamic prop, dynamic obj)
Parameters
propdynamicA string or symbol representing a property name (non-symbols will be coerced to strings). Can also be a private element identifier.
objdynamicObject to check if it (or its prototype chain) contains the property with specified name (prop).
Returns
- bool
bool
Remarks
InequalsStrict(dynamic, dynamic)
Translates this method into the "!==" operator.
[Binary("!==")]
public static bool InequalsStrict(dynamic left, dynamic right)
Parameters
leftdynamicx
rightdynamicy
Returns
Remarks
See mdn: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_inequality
InstanceOf<C>(dynamic)
Translates this method into the "instanceof" operator.
[GenericBinary(" instanceof ")]
public static bool InstanceOf<C>(dynamic obj)
Parameters
objdynamicThe object to test.
Returns
- bool
bool
Type Parameters
CConstructor to test against.
Remarks
IsFinite(float)
[To("FirstCharToLowerCase")]
public static bool IsFinite(float number)
Parameters
numberfloat
Returns
IsNaN(float)
[To("FirstCharToLowerCase")]
public static bool IsNaN(float number)
Parameters
numberfloat
Returns
ParseFloat(string)
[To("FirstCharToLowerCase")]
public static float ParseFloat(string str)
Parameters
strstring
Returns
ParseInt(string, int?)
[To("FirstCharToLowerCase")]
public static int ParseInt(string str, int? radix = null)
Parameters
Returns
TypeOf(Func<dynamic>)
Translates this method into the "typeof" operator.
[Unary("typeof ")]
public static string TypeOf(Func<dynamic> operand)
Parameters
operandFunc<dynamic>An expression representing the object or primitive whose type is to be returned.
Returns
- string
string
Remarks
TypeOf(object)
Translates this method into the "typeof" operator.
[Unary("typeof ")]
public static string TypeOf(object operand)
Parameters
operandobjectAn expression representing the object or primitive whose type is to be returned.
Returns
- string
string
Remarks
TypeOf<O>()
Translates this method into the "typeof" operator.
[GenericUnary("typeof ")]
public static string TypeOf<O>()
Returns
- string
string
Type Parameters
OAn expression representing the object or primitive whose type is to be returned.
Remarks
Unescape(string)
[To("FirstCharToLowerCase")]
public static string Unescape(string str)
Parameters
strstring
Returns
Void(dynamic)
Translates this method into the "void" operator.
[Unary("void ")]
public static GlobalObject.Undefined Void(dynamic arg)
Parameters
argdynamicexpression
Returns
- GlobalObject.Undefined
Undefined