Skip to content

Xml/Fact Equals does not consider contextRef #83

@bigsmity

Description

@bigsmity

Xml/Fact Equals does not consider contextRef. I would not consider these facts duplicates if they do not share context.

`public bool Equals(Fact other)
{
var result = other != null
&& Value.Equals(other.Value, StringComparison.Ordinal)
&& Metric.Equals(other.Metric)
&& Decimals.Equals(other.Decimals, StringComparison.Ordinal);

        if (result)
            result = Unit == null
                ? other.Unit == null
                : Unit.Equals(other.Unit);

        return result;
    }`

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions