Table of Contents

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

expr1 dynamic

First expression.

expr2 dynamic

Second expression.

Returns

dynamic

dynamic

Remarks

DecodeURI(string)

[To("FirstCharToLowerCase")]
public static string DecodeURI(string encodedURI)

Parameters

encodedURI string

Returns

string

DecodeURIComponent(string)

[To("FirstCharToLowerCase")]
public static string DecodeURIComponent(string encodedURIComponent)

Parameters

encodedURIComponent string

Returns

string

Delete(dynamic)

Translates this method into the "delete" operator.

[Unary("delete ")]
public static bool Delete(dynamic arg)

Parameters

arg dynamic

object.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

uri string

Returns

string

EncodeURIComponent(string)

[To("FirstCharToLowerCase")]
public static string EncodeURIComponent(string uriComponent)

Parameters

uriComponent string

Returns

string

EqualsStrict(dynamic, dynamic)

Translates this method into the "===" operator.

[Binary("===")]
public static bool EqualsStrict(dynamic left, dynamic right)

Parameters

left dynamic

x

right dynamic

y

Returns

bool

Remarks

Escape(string)

[To("FirstCharToLowerCase")]
public static string Escape(string str)

Parameters

str string

Returns

string

Eval(string)

[To("FirstCharToLowerCase")]
public static dynamic Eval(string x)

Parameters

x string

Returns

dynamic

In(dynamic, dynamic)

Translates this method into the "in" operator.

[Binary("in")]
public static bool In(dynamic prop, dynamic obj)

Parameters

prop dynamic

A string or symbol representing a property name (non-symbols will be coerced to strings). Can also be a private element identifier.

obj dynamic

Object 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

left dynamic

x

right dynamic

y

Returns

bool

Remarks

InstanceOf<C>(dynamic)

Translates this method into the "instanceof" operator.

[GenericBinary(" instanceof ")]
public static bool InstanceOf<C>(dynamic obj)

Parameters

obj dynamic

The object to test.

Returns

bool

bool

Type Parameters

C

Constructor to test against.

Remarks

IsFinite(float)

[To("FirstCharToLowerCase")]
public static bool IsFinite(float number)

Parameters

number float

Returns

bool

IsNaN(float)

[To("FirstCharToLowerCase")]
public static bool IsNaN(float number)

Parameters

number float

Returns

bool

ParseFloat(string)

[To("FirstCharToLowerCase")]
public static float ParseFloat(string str)

Parameters

str string

Returns

float

ParseInt(string, int?)

[To("FirstCharToLowerCase")]
public static int ParseInt(string str, int? radix = null)

Parameters

str string
radix int?

Returns

int

TypeOf(Func<dynamic>)

Translates this method into the "typeof" operator.

[Unary("typeof ")]
public static string TypeOf(Func<dynamic> operand)

Parameters

operand Func<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

operand object

An 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

O

An expression representing the object or primitive whose type is to be returned.

Remarks

Unescape(string)

[To("FirstCharToLowerCase")]
public static string Unescape(string str)

Parameters

str string

Returns

string

Void(dynamic)

Translates this method into the "void" operator.

[Unary("void ")]
public static GlobalObject.Undefined Void(dynamic arg)

Parameters

arg dynamic

expression

Returns

GlobalObject.Undefined

Undefined

Remarks