Skip to content

False cyclic dependency exceptions #9

@oleih

Description

@oleih

We get false cyclic dependency exceptions (ObjectGraphDiff.cs:87).

Thrown if both left and right graph contain value type objects that hash to the same value (e.g. MongoDB.Bson.ObjectId with the same value in each graph).

Also: It is also thrown for reference types types that only contain such value types, e.g.:
public class TimeRange
{
public readonly TimeSpan Start;
public readonly TimeSpan End;
public TimeRange(string hhmmStart, string hhmmEnd)
{
//..
}
}

It would be great if it was possible to disable the cyclic dependency checking. We know that our graphs are not cyclic. :-)

Also, we think there may be a problem in ODiff.Extensions.ObjectExtensions.cs:32. Perhaps it is better to use obj is ValueType?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions