JsonValueExtensionsToJson(NullableDateTimeOffset, String) Method
Namespace: KGySoft.JsonAssembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static JsonValue ToJson(
this DateTimeOffset? value,
string format
)
<ExtensionAttribute>
Public Shared Function ToJson (
value As DateTimeOffset?,
format As String
) As JsonValue
public:
[ExtensionAttribute]
static JsonValue ToJson(
Nullable<DateTimeOffset> value,
String^ format
)
[<ExtensionAttribute>]
static member ToJson :
value : Nullable<DateTimeOffset> *
format : string -> JsonValue
- value NullableDateTimeOffset
- The value to convert.
- format String
- Specifies the exact format of the value as a JSON 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
NullableDateTimeOffset. 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).