JsonValue   Conversion (JsonValue to String)

Performs an explicit conversion from JsonValue to string. The conversion succeeds if the Type property is Null or String; otherwise, an InvalidCastException is thrown.

Definition

Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
C#
public static explicit operator string (
	JsonValue value
)

Parameters

value  JsonValue
The value to be converted to a string.

Return Value

String
A string instance that represents the original value.

Exceptions

InvalidCastExceptionvalue does not represent a string value.

See Also