LaunchDarkly Dotnet Client SDK
Search Results for

    Show / Hide Table of Contents

    Struct EvaluationDetail<T>

    An object returned by the "variation detail" methods of the client, combining the result of a flag evaluation with an explanation of how it was calculated.

    Inherited Members
    ValueType.ToString()
    object.GetType()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LaunchDarkly.Sdk
    Assembly: LaunchDarkly.CommonSdk.dll
    Syntax
    public struct EvaluationDetail<T>
    Type Parameters
    Name Description
    T

    the type of the flag value

    Constructors

    EvaluationDetail(T, int?, EvaluationReason)

    Constructs a new EvaluationDetail insetance.

    Declaration
    public EvaluationDetail(T value, int? variationIndex, EvaluationReason reason)
    Parameters
    Type Name Description
    T value

    the flag value

    int? variationIndex

    the variation index

    EvaluationReason reason

    the evaluation reason

    Properties

    IsDefaultValue

    True if the flag evaluated to the default value, rather than one of its variations.

    Declaration
    public bool IsDefaultValue { get; }
    Property Value
    Type Description
    bool

    Reason

    An object describing the main factor that influenced the flag evaluation value.

    Declaration
    public EvaluationReason Reason { get; }
    Property Value
    Type Description
    EvaluationReason

    Value

    The result of the flag evaluation. This will be either one of the flag's variations or the default value that was specified when the flag was evaluated.

    Declaration
    public T Value { get; }
    Property Value
    Type Description
    T

    VariationIndex

    The index of the returned value within the flag's list of variations, e.g. 0 for the first variation - or null if the default value was returned.

    Declaration
    public int? VariationIndex { get; }
    Property Value
    Type Description
    int?

    Methods

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()
    In this article
    Back to top Generated by DocFX