Provides methods for converting between common language runtime types and JavaScript types.
| C# | Visual Basic | Visual C++ |
public static class JavaScriptConvert
Public NotInheritable Class JavaScriptConvert
public ref class JavaScriptConvert abstract sealed
| All Members | Methods | Fields | |||
| Icon | Member | Description |
|---|---|---|
| DeserializeAnonymousType<(Of <(T>)>)(String, T) |
Deserializes the specified JSON to the given anonymous type.
| |
| DeserializeObject(String) |
Deserializes the specified object to a Json object.
| |
| DeserializeObject(String, Type) |
Deserializes the specified object to a Json object.
| |
| DeserializeObject<(Of <(T>)>)(String) |
Deserializes the specified object to a Json object.
| |
| DeserializeObject<(Of <(T>)>)(String, array<JsonConverter>[]()[]) |
Deserializes the JSON string to the specified type.
| |
| DeserializeObject(String, Type, array<JsonConverter>[]()[]) |
Deserializes the JSON string to the specified type.
| |
| DeserializeXmlNode(String) |
Deserializes the XmlNode from a JSON string.
| |
| False |
Represents JavaScript's boolean value false as a string. This field is read-only.
| |
| NaN |
Represents JavaScript's NaN as a string. This field is read-only.
| |
| NegativeInfinity |
Represents JavaScript's negative infinity as a string. This field is read-only.
| |
| Null |
Represents JavaScript's null as a string. This field is read-only.
| |
| PositiveInfinity |
Represents JavaScript's positive infinity as a string. This field is read-only.
| |
| SerializeObject(Object) |
Serializes the specified object to a JSON string.
| |
| SerializeObject(Object, array<JsonConverter>[]()[]) |
Serializes the specified object to a JSON string using a collection of JsonConverter.
| |
| SerializeXmlNode(XmlNode) |
Serializes the XML node to a JSON string.
| |
| ToString(DateTime) |
Converts the DateTime to it's JavaScript string representation.
| |
| ToString(DateTimeOffset) |
Converts the DateTimeOffset to it's JavaScript string representation.
| |
| ToString(Boolean) |
Converts the Boolean to it's JavaScript string representation.
| |
| ToString(Char) |
Converts the Char to it's JavaScript string representation.
| |
| ToString(Enum) |
Converts the Enum to it's JavaScript string representation.
| |
| ToString(Int32) |
Converts the Int32 to it's JavaScript string representation.
| |
| ToString(Int16) |
Converts the Int16 to it's JavaScript string representation.
| |
| ToString(UInt16) |
Converts the UInt16 to it's JavaScript string representation.
| |
| ToString(UInt32) |
Converts the UInt32 to it's JavaScript string representation.
| |
| ToString(Int64) |
Converts the Int64 to it's JavaScript string representation.
| |
| ToString(UInt64) |
Converts the UInt64 to it's JavaScript string representation.
| |
| ToString(Single) |
Converts the Single to it's JavaScript string representation.
| |
| ToString(Double) |
Converts the Double to it's JavaScript string representation.
| |
| ToString(Byte) |
Converts the Byte to it's JavaScript string representation.
| |
| ToString(SByte) |
Converts the SByte to it's JavaScript string representation.
| |
| ToString(Decimal) |
Converts the Decimal to it's JavaScript string representation.
| |
| ToString(Guid) |
Converts the Guid to it's JavaScript string representation.
| |
| ToString(String) |
Converts the String to it's JavaScript string representation.
| |
| ToString(String, Char) |
Converts the String to it's JavaScript string representation.
| |
| ToString(Object) |
Converts the Object to it's JavaScript string representation.
| |
| True |
Represents JavaScript's boolean value true as a string. This field is read-only.
| |
| Undefined |
Represents JavaScript's undefined as a string. This field is read-only.
|
| Object | |
| JavaScriptConvert | |