C# Class NetServ.Net.Json.JsonString

Inheritance: JsonTypeSkeleton, IJsonString
ファイルを表示 Open project: appcelerator/entourage Class Usage Examples

Public Properties

Property Type Description
Empty JsonString

Public Methods

Method Description
CompareTo ( IJsonString other ) : int

Returns a value indicating equality with the specified NetServ.Net.Json.IJsonString.

CompareTo ( JsonString other ) : int

Returns a value indicating equality with the specified instance.

CompareTo ( string other ) : int

Returns a value indicating equality with the specified System.String.

Encode ( string s ) : string

Encodes the specified System.String.

Equals ( IJsonString other ) : bool

Returns a indicating whether this instance is equal to the specified NetServ.Net.Json.IJsonString.

Equals ( JsonString other ) : bool

Returns a indicating whether this instance is equal to the specified JsonString.

Equals ( JsonString a, JsonString b ) : bool

Determines if the two NetServ.Net.Json.JsonStrings are equal.

Equals ( object obj ) : bool

Returns a indicating whether this instance is equal to the specified System.Object.

Equals ( string other ) : bool

Returns a indicating whether this instance is equal to the specified System.String.

GetHashCode ( ) : int

Returns a hash code for this JsonString.

JsonString ( string value ) : System

Initialises a new instance of the JsonString class and specifies the value.

ToString ( ) : string

Returns a System.String representation of this JsonString instance.

Write ( IJsonWriter writer ) : void

Writes the contents of this Json type using the specified NetServ.Net.Json.IJsonWriter.

operator ( ) : bool

Inequality operator.

Private Methods

Method Description
ShouldEncode ( string s ) : bool

Method Details

CompareTo() public method

Returns a value indicating equality with the specified NetServ.Net.Json.IJsonString.
public CompareTo ( IJsonString other ) : int
other IJsonString The to /// compare.
return int

CompareTo() public method

Returns a value indicating equality with the specified instance.
public CompareTo ( JsonString other ) : int
other JsonString The JsonNumber to compare.
return int

CompareTo() public method

Returns a value indicating equality with the specified System.String.
public CompareTo ( string other ) : int
other string The String to compare.
return int

Encode() public static method

Encodes the specified System.String.
public static Encode ( string s ) : string
s string The string to encode.
return string

Equals() public method

Returns a indicating whether this instance is equal to the specified NetServ.Net.Json.IJsonString.
public Equals ( IJsonString other ) : bool
other IJsonString The value to compare.
return bool

Equals() public method

Returns a indicating whether this instance is equal to the specified JsonString.
public Equals ( JsonString other ) : bool
other JsonString The value to compare.
return bool

Equals() public static method

Determines if the two NetServ.Net.Json.JsonStrings are equal.
public static Equals ( JsonString a, JsonString b ) : bool
a JsonString The first JsonString.
b JsonString The second JsonString.
return bool

Equals() public method

Returns a indicating whether this instance is equal to the specified System.Object.
public Equals ( object obj ) : bool
obj object The object to compare.
return bool

Equals() public method

Returns a indicating whether this instance is equal to the specified System.String.
public Equals ( string other ) : bool
other string The value to compare.
return bool

GetHashCode() public method

Returns a hash code for this JsonString.
public GetHashCode ( ) : int
return int

JsonString() public method

Initialises a new instance of the JsonString class and specifies the value.
public JsonString ( string value ) : System
value string The value of the instance.
return System

ToString() public method

Returns a System.String representation of this JsonString instance.
public ToString ( ) : string
return string

Write() public method

Writes the contents of this Json type using the specified NetServ.Net.Json.IJsonWriter.
public Write ( IJsonWriter writer ) : void
writer IJsonWriter The Json writer.
return void

operator() public static method

Inequality operator.
public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

Defines an empty JsonString. This field is readonly.
public static JsonString,NetServ.Net.Json Empty
return JsonString