// Constructor from a read-only list private LdValue(ImmutableList <LdValue> list) { _type = LdValueType.Array; _arrayValue = list; _boolValue = false; _doubleValue = 0; _stringValue = null; _objectValue = null; }
// Constructor from a read-only dictionary private LdValue(ImmutableDictionary <string, LdValue> dict) { _type = LdValueType.Object; _objectValue = dict; _boolValue = false; _doubleValue = 0; _stringValue = null; _arrayValue = null; }
// Constructor from a primitive type private LdValue(LdValueType type, bool boolValue, double doubleValue, string stringValue) { _type = type; _boolValue = boolValue; _doubleValue = doubleValue; _stringValue = stringValue; _arrayValue = null; _objectValue = null; }