Class JSObject
Inheritance
System.Object
JSObject
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: OpenSilver.dll
Syntax
public class JSObject : IJSObject
Constructors
|
Improve this Doc
View Source
JSObject()
Declaration
|
Improve this Doc
View Source
JSObject(Object)
Declaration
public JSObject(object jsObj)
Parameters
Type |
Name |
Description |
System.Object |
jsObj |
|
Fields
|
Improve this Doc
View Source
Null
Declaration
public static readonly JSObject Null
Field Value
|
Improve this Doc
View Source
Undefined
Declaration
public static readonly JSObject Undefined
Field Value
Properties
|
Improve this Doc
View Source
UnderlyingJSInstance
Declaration
public object UnderlyingJSInstance { get; set; }
Property Value
Type |
Description |
System.Object |
|
Methods
|
Improve this Doc
View Source
CreateFrom(Object)
Declaration
public static JSObject CreateFrom(object o)
Parameters
Type |
Name |
Description |
System.Object |
o |
|
Returns
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
FromJavaScriptInstance<T>(Object)
Declaration
public static T FromJavaScriptInstance<T>(object jsInstance)
where T : IJSObject, new()
Parameters
Type |
Name |
Description |
System.Object |
jsInstance |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Helper_ConvertTo<T>(Object)
Declaration
public static T Helper_ConvertTo<T>(object jsObj)
Parameters
Type |
Name |
Description |
System.Object |
jsObj |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Helper_IsBuiltInType<T>()
Declaration
public static bool Helper_IsBuiltInType<T>()
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Operators
|
Improve this Doc
View Source
Implicit(Boolean to JSObject)
Declaration
public static implicit operator JSObject(bool b)
Parameters
Type |
Name |
Description |
System.Boolean |
b |
|
Returns
|
Improve this Doc
View Source
Implicit(Byte to JSObject)
Declaration
public static implicit operator JSObject(byte b)
Parameters
Type |
Name |
Description |
System.Byte |
b |
|
Returns
|
Improve this Doc
View Source
Implicit(Char to JSObject)
Declaration
public static implicit operator JSObject(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
|
Returns
|
Improve this Doc
View Source
Implicit(Decimal to JSObject)
Declaration
public static implicit operator JSObject(decimal d)
Parameters
Type |
Name |
Description |
System.Decimal |
d |
|
Returns
|
Improve this Doc
View Source
Implicit(Double to JSObject)
Declaration
public static implicit operator JSObject(double d)
Parameters
Type |
Name |
Description |
System.Double |
d |
|
Returns
|
Improve this Doc
View Source
Implicit(Int16 to JSObject)
Declaration
public static implicit operator JSObject(short s)
Parameters
Type |
Name |
Description |
System.Int16 |
s |
|
Returns
|
Improve this Doc
View Source
Implicit(Int32 to JSObject)
Declaration
public static implicit operator JSObject(int i)
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Returns
|
Improve this Doc
View Source
Implicit(Int64 to JSObject)
Declaration
public static implicit operator JSObject(long l)
Parameters
Type |
Name |
Description |
System.Int64 |
l |
|
Returns
|
Improve this Doc
View Source
Implicit(SByte to JSObject)
Declaration
public static implicit operator JSObject(sbyte s)
Parameters
Type |
Name |
Description |
System.SByte |
s |
|
Returns
|
Improve this Doc
View Source
Implicit(Single to JSObject)
Declaration
public static implicit operator JSObject(float f)
Parameters
Type |
Name |
Description |
System.Single |
f |
|
Returns
|
Improve this Doc
View Source
Implicit(String to JSObject)
Declaration
public static implicit operator JSObject(string s)
Parameters
Type |
Name |
Description |
System.String |
s |
|
Returns
|
Improve this Doc
View Source
Implicit(UInt16 to JSObject)
Declaration
public static implicit operator JSObject(ushort u)
Parameters
Type |
Name |
Description |
System.UInt16 |
u |
|
Returns
|
Improve this Doc
View Source
Implicit(UInt32 to JSObject)
Declaration
public static implicit operator JSObject(uint u)
Parameters
Type |
Name |
Description |
System.UInt32 |
u |
|
Returns
|
Improve this Doc
View Source
Implicit(UInt64 to JSObject)
Declaration
public static implicit operator JSObject(ulong u)
Parameters
Type |
Name |
Description |
System.UInt64 |
u |
|
Returns
Implements
Extension Methods