Skip to content

No possibility to compare Value #154

@tirect

Description

@tirect

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions