Class LdValue.ArrayBuilder
An object returned by BuildArray() for building an array of values.
Inherited Members
Namespace: LaunchDarkly.Sdk
Assembly: LaunchDarkly.CommonSdk.dll
Syntax
public sealed class LdValue.ArrayBuilder
Methods
Add(LdValue)
Adds a value to the array being built.
Declaration
public LdValue.ArrayBuilder Add(LdValue value)
Parameters
Type | Name | Description |
---|---|---|
LdValue | value | the value to add |
Returns
Type | Description |
---|---|
LdValue.ArrayBuilder | the same builder |
Add(bool)
Adds a value to the array being built.
Declaration
public LdValue.ArrayBuilder Add(bool value)
Parameters
Type | Name | Description |
---|---|---|
bool | value | the value to add |
Returns
Type | Description |
---|---|
LdValue.ArrayBuilder | the same builder |
Add(double)
Adds a value to the array being built.
Declaration
public LdValue.ArrayBuilder Add(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | the value to add |
Returns
Type | Description |
---|---|
LdValue.ArrayBuilder | the same builder |
Remarks
Numeric values in LaunchDarkly have some precision limitations. For more details, see our documentation on flag value types.
Add(long)
Adds a value to the array being built.
Declaration
public LdValue.ArrayBuilder Add(long value)
Parameters
Type | Name | Description |
---|---|---|
long | value | the value to add |
Returns
Type | Description |
---|---|
LdValue.ArrayBuilder | the same builder |
Remarks
Numeric values in LaunchDarkly have some precision limitations. For more details, see our documentation on flag value types.
Add(string)
Adds a value to the array being built.
Declaration
public LdValue.ArrayBuilder Add(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | the value to add |
Returns
Type | Description |
---|---|
LdValue.ArrayBuilder | the same builder |
Build()
Returns an array value containing the items provided so far.
Declaration
public LdValue Build()
Returns
Type | Description |
---|---|
LdValue | an immutable array LdValue |