C# Class LC.Newtonsoft.Json.Linq.JValue

Represents a value in JSON (string, integer, date, etc).
Inheritance: LC.Newtonsoft.Json.Linq.JToken, IEquatable, IFormattable, IComparable, IComparable, IConvertible
Mostrar archivo Open project: leancloud/csharp-sdk Class Usage Examples

Public Methods

Method Description
CreateComment ( string? value ) : JValue

Creates a JValue comment with the given value.

CreateNull ( ) : JValue

Creates a JValue null value.

CreateString ( string? value ) : JValue

Creates a JValue string with the given value.

CreateUndefined ( ) : JValue

Creates a JValue undefined value.

JValue ( other ) : System

Initializes a new instance of the JValue class from another JValue object.

JValue ( DateTime value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( DateTimeOffset value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( Guid value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( TimeSpan value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( Uri? value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( bool value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( char value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( decimal value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( double value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( float value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( long value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( object? value ) : System

Initializes a new instance of the JValue class with the given value.

JValue ( string? value ) : System

Initializes a new instance of the JValue class with the given value.

Private Methods

Method Description
CloneToken ( ) : LC.Newtonsoft.Json.Linq.JToken
Compare ( JTokenType valueType, object? objA, object? objB ) : int
CompareBigInteger ( BigInteger i1, object i2 ) : int
CompareFloat ( object objA, object objB ) : int
DeepEquals ( LC.Newtonsoft.Json.Linq.JToken node ) : bool
GetStringValueType ( JTokenType? current ) : JTokenType
GetValueType ( JTokenType? current, object? value ) : JTokenType
JValue ( object? value, JTokenType type ) : System
JValue ( ulong value ) : System
Operation ( ExpressionType operation, object? objA, object? objB, object? &result ) : bool

Method Details

CreateComment() public static method

Creates a JValue comment with the given value.
public static CreateComment ( string? value ) : JValue
value string? The value.
return JValue

CreateNull() public static method

Creates a JValue null value.
public static CreateNull ( ) : JValue
return JValue

CreateString() public static method

Creates a JValue string with the given value.
public static CreateString ( string? value ) : JValue
value string? The value.
return JValue

CreateUndefined() public static method

Creates a JValue undefined value.
public static CreateUndefined ( ) : JValue
return JValue

JValue() public method

Initializes a new instance of the JValue class from another JValue object.
public JValue ( other ) : System
other A object to copy from.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( DateTime value ) : System
value DateTime The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( DateTimeOffset value ) : System
value DateTimeOffset The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( Guid value ) : System
value Guid The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( TimeSpan value ) : System
value TimeSpan The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( Uri? value ) : System
value Uri? The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( bool value ) : System
value bool The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( char value ) : System
value char The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( decimal value ) : System
value decimal The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( double value ) : System
value double The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( float value ) : System
value float The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( long value ) : System
value long The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( object? value ) : System
value object? The value.
return System

JValue() public method

Initializes a new instance of the JValue class with the given value.
public JValue ( string? value ) : System
value string? The value.
return System