JsonValueExtensionsToJson(NullableInt64, Boolean) Method
Converts the specified
value to
JsonValue.
To prevent losing precision the default value of the
asString parameter is
in this overload.
See the
Remarks section of the
AsNumber property for details.
Namespace: KGySoft.JsonAssembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static JsonValue ToJson(
this long? value,
bool asString = true
)
<ExtensionAttribute>
Public Shared Function ToJson (
value As Long?,
Optional asString As Boolean = true
) As JsonValue
public:
[ExtensionAttribute]
static JsonValue ToJson(
Nullable<long long> value,
bool asString = true
)
[<ExtensionAttribute>]
static member ToJson :
value : Nullable<int64> *
?asString : bool
(* Defaults:
let _asString = defaultArg asString true
*)
-> JsonValue
- value NullableInt64
- The value to convert.
- asString Boolean (Optional)
- to convert the value to a JsonValue
with String Type; otherwise, . This parameter is optional.
Default value: .
JsonValueA
JsonValue instance that is the JSON representation of the specified
value.In Visual Basic and C#, you can call this method as an instance method on any object of type
NullableInt64. 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).