JsonValueExtensionsToJson(UInt16, Boolean) Method

Converts the specified value to JsonValue.


Namespace: KGySoft.Json
Assembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static JsonValue ToJson(
	this ushort value,
	bool asString = false


value  UInt16
The value to convert.
asString  Boolean  (Optional)
to convert the value to a JsonValue with String Type; otherwise, . This parameter is optional.
Default value: .

Return Value

A JsonValue instance that is the JSON representation of the specified value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UInt16. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also