Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No possibility to compare Value #154

Open
tirect opened this issue Jan 13, 2023 · 0 comments
Open

No possibility to compare Value #154

tirect opened this issue Jan 13, 2023 · 0 comments

Comments

@tirect
Copy link

tirect commented Jan 13, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant