mixpanel-unity icon indicating copy to clipboard operation
mixpanel-unity copied to clipboard

No possibility to compare Value

Open tirect opened this issue 2 years ago • 0 comments

Value class has no possibility to compare with another Value object. There is a possibility to convert to another type, but no way to understand what type Value is. For example there is: public static implicit operator string(Value value) => value.String; or

    private string String
        {
            get
            {
                Assert.IsTrue(_valueType == ValueTypes.STRING && _dataType == DataTypes.PRIMITIVE);
                return _string;
            }
        }

But no way to understand if Value is a string. As ValueType enum is private, and _valueType field is also private, and no property to get it. Would be great to have possibility to compare Value.

tirect avatar Jan 13 '23 18:01 tirect