JString
Derived from
JValue
Class to store string value in JSON format. Once JString instance is created, its value can't be changed.
Constructors
Methods
public string AsString () | Get value of this JSON string as c# system string. | public override bool Equals (object anotherObject) | Test if another object equals to this object. | public override string ToString () | Returns compact information of this JString object as string, for debug purposes. |
Constructors
public JString (string stringValue) Creates new instance of JString object.
Parameter can't be null. If you wish to add null to JSON or JArray object, create new JNull() and add that one. Parameters | stringValue | C# string value to be stored in this object. |
Exceptions | JArgumentNullException | If parameter is null. |
Methods
public string AsString () Get value of this JSON string as c# system string. Returns | c# string value, can not be null. |
public override bool Equals (object anotherObject) Test if another object equals to this object. Always returns false if parameter object is null or it is not instance of JString. Two JString objects are equal if both contains exactly same string. Parameters | anotherObject | Another object that is compared to this one. |
Returns | True if objects are equal, false otherwise. |
public override string ToString () Returns compact information of this JString object as string, for debug purposes. Returns | Single string with information of this JString object. |
|