Struct LdValue
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
[JsonConverter(typeof(LdJsonConverters.LdValueConverter))]
public struct LdValue : IEquatable<LdValue>, IJsonSerializable
Properties
AsBool
Declaration
public bool AsBool { get; }
Property Value
AsDouble
Declaration
public double AsDouble { get; }
Property Value
AsFloat
Declaration
public float AsFloat { get; }
Property Value
AsInt
Declaration
public int AsInt { get; }
Property Value
AsLong
Declaration
public long AsLong { get; }
Property Value
AsString
Declaration
public string AsString { get; }
Property Value
Count
Declaration
public int Count { get; }
Property Value
Dictionary
Declaration
public ImmutableDictionary<string, LdValue> Dictionary { get; }
Property Value
IsInt
Declaration
public bool IsInt { get; }
Property Value
IsNull
Declaration
public bool IsNull { get; }
Property Value
IsNumber
Declaration
public bool IsNumber { get; }
Property Value
IsString
Declaration
public bool IsString { get; }
Property Value
List
Declaration
public ImmutableList<LdValue> List { get; }
Property Value
Null
Declaration
public static LdValue Null { get; }
Property Value
Type
Declaration
public LdValueType Type { get; }
Property Value
Methods
ArrayFrom(IEnumerable<LdValue>)
Declaration
public static LdValue ArrayFrom(IEnumerable<LdValue> values)
Parameters
Returns
ArrayOf(params LdValue[])
Declaration
public static LdValue ArrayOf(params LdValue[] values)
Parameters
Type |
Name |
Description |
LdValue[] |
values |
|
Returns
AsDictionary<T>(Converter<T>)
Declaration
public IReadOnlyDictionary<string, T> AsDictionary<T>(LdValue.Converter<T> desiredType)
Parameters
Returns
Type Parameters
AsList<T>(Converter<T>)
Declaration
public IReadOnlyList<T> AsList<T>(LdValue.Converter<T> desiredType)
Parameters
Returns
Type Parameters
BuildArray()
Declaration
public static LdValue.ArrayBuilder BuildArray()
Returns
BuildObject()
Declaration
public static LdValue.ObjectBuilder BuildObject()
Returns
Equals(LdValue)
Declaration
public bool Equals(LdValue o)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object o)
Parameters
Type |
Name |
Description |
object |
o |
|
Returns
Overrides
Get(int)
Declaration
public LdValue Get(int index)
Parameters
Type |
Name |
Description |
int |
index |
|
Returns
Get(string)
Declaration
public LdValue Get(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ObjectFrom(IReadOnlyDictionary<string, LdValue>)
Declaration
public static LdValue ObjectFrom(IReadOnlyDictionary<string, LdValue> dictionary)
Parameters
Returns
Of(bool)
Declaration
public static LdValue Of(bool value)
Parameters
Type |
Name |
Description |
bool |
value |
|
Returns
Of(double)
Declaration
public static LdValue Of(double value)
Parameters
Type |
Name |
Description |
double |
value |
|
Returns
Of(int)
Declaration
public static LdValue Of(int value)
Parameters
Type |
Name |
Description |
int |
value |
|
Returns
Of(long)
Declaration
public static LdValue Of(long value)
Parameters
Type |
Name |
Description |
long |
value |
|
Returns
Of(float)
Declaration
public static LdValue Of(float value)
Parameters
Type |
Name |
Description |
float |
value |
|
Returns
Of(string)
Declaration
public static LdValue Of(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
Parse(string)
Declaration
public static LdValue Parse(string jsonString)
Parameters
Type |
Name |
Description |
string |
jsonString |
|
Returns
ToJsonString()
Declaration
public string ToJsonString()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(LdValue, LdValue)
Declaration
public static bool operator ==(LdValue a, LdValue b)
Parameters
Returns
operator !=(LdValue, LdValue)
Declaration
public static bool operator !=(LdValue a, LdValue b)
Parameters
Returns
Implements