Show / Hide Table of Contents

Class 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.

Inheritance
System.Object
EvaluationDetail<T>
Namespace: LaunchDarkly.Sdk
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public sealed class EvaluationDetail<T> : ValueType
Type Parameters
Name Description
T

the type of the flag value

Constructors

EvaluationDetail(T, Nullable<Int32>, EvaluationReason)

Constructs a new EvaluationDetail insetance.

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

the flag value

System.Nullable<System.Int32> 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
System.Boolean

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 Nullable<int> VariationIndex { get; }
Property Value
Type Description
System.Nullable<System.Int32>

Methods

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
In This Article
Back to top Generated by DocFX