LaunchDarkly Dotnet Client SDK
Search Results for

    Show / Hide Table of Contents

    Class JsonConverterHelpers

    Inheritance
    object
    JsonConverterHelpers
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LaunchDarkly.Sdk.Internal
    Assembly: LaunchDarkly.InternalSdk.dll
    Syntax
    public static class JsonConverterHelpers

    Methods

    GetIntOrNull(ref Utf8JsonReader)

    Declaration
    public static int? GetIntOrNull(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    int?

    GetLongOrNull(ref Utf8JsonReader)

    Declaration
    public static long? GetLongOrNull(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    long?

    GetTimeOrNull(ref Utf8JsonReader)

    Declaration
    public static UnixMillisecondTime? GetTimeOrNull(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    UnixMillisecondTime?

    RequireArray(ref Utf8JsonReader)

    Declaration
    public static JsonConverterHelpers.ArrayHelper RequireArray(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    JsonConverterHelpers.ArrayHelper

    RequireArrayOrNull(ref Utf8JsonReader)

    Declaration
    public static JsonConverterHelpers.ArrayHelper RequireArrayOrNull(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    JsonConverterHelpers.ArrayHelper

    RequireObject(ref Utf8JsonReader)

    Declaration
    public static JsonConverterHelpers.ObjectHelper RequireObject(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    JsonConverterHelpers.ObjectHelper

    RequireObjectOrNull(ref Utf8JsonReader)

    Declaration
    public static JsonConverterHelpers.ObjectHelper RequireObjectOrNull(ref Utf8JsonReader reader)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Returns
    Type Description
    JsonConverterHelpers.ObjectHelper

    RequireTokenType(ref Utf8JsonReader, JsonTokenType)

    Declaration
    public static void RequireTokenType(ref Utf8JsonReader reader, JsonTokenType expectedType)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    JsonTokenType expectedType

    WriteBooleanIfTrue(Utf8JsonWriter, string, bool)

    Declaration
    public static void WriteBooleanIfTrue(Utf8JsonWriter w, string name, bool value)
    Parameters
    Type Name Description
    Utf8JsonWriter w
    string name
    bool value

    WriteIntIfNotNull(Utf8JsonWriter, string, int?)

    Declaration
    public static void WriteIntIfNotNull(Utf8JsonWriter w, string name, int? value)
    Parameters
    Type Name Description
    Utf8JsonWriter w
    string name
    int? value

    WriteJsonAsString(Action<Utf8JsonWriter>)

    Declaration
    public static string WriteJsonAsString(Action<Utf8JsonWriter> action)
    Parameters
    Type Name Description
    Action<Utf8JsonWriter> action
    Returns
    Type Description
    string

    WriteLdValue(Utf8JsonWriter, string, LdValue)

    Declaration
    public static void WriteLdValue(Utf8JsonWriter w, string name, LdValue value)
    Parameters
    Type Name Description
    Utf8JsonWriter w
    string name
    LdValue value

    WriteLdValueIfNotNull(Utf8JsonWriter, string, LdValue)

    Declaration
    public static void WriteLdValueIfNotNull(Utf8JsonWriter w, string name, LdValue value)
    Parameters
    Type Name Description
    Utf8JsonWriter w
    string name
    LdValue value

    WriteStringIfNotNull(Utf8JsonWriter, string, string)

    Declaration
    public static void WriteStringIfNotNull(Utf8JsonWriter w, string name, string value)
    Parameters
    Type Name Description
    Utf8JsonWriter w
    string name
    string value

    WriteTimeIfNotNull(Utf8JsonWriter, string, UnixMillisecondTime?)

    Declaration
    public static void WriteTimeIfNotNull(Utf8JsonWriter w, string name, UnixMillisecondTime? value)
    Parameters
    Type Name Description
    Utf8JsonWriter w
    string name
    UnixMillisecondTime? value
    In this article
    Back to top Generated by DocFX