C# Object comparison problem

  • Status: Closed
  • Prize: €15
  • Entries Received: 1
  • Winner: bojbaj

Contest Brief

I have the following code where I am using [login to view URL];


var comparer = new CompareLogic

{
Config =
{
MaxDifferences = [login to view URL]
}
};

if (fieldsToIgnore != null)
[login to view URL] = fieldsToIgnore;

var differences = [login to view URL](Expected, output).Differences;

I can use later, these properties.

[login to view URL]
[login to view URL]
[login to view URL]

I would like to have a method which would give equals, where I could use these properties e.g.

var equals = [login to view URL](Expected, output);

And then use this equals list to call the same:

equals .PropertyName
equals .Object1Value
equals .Object2Value

Object can be very broad an example:

"Output": {
"SingleResult": {
"Count": 1,
"Feature": [
{
"Option1": { },
"Option2": "1",
"Option3": [],
"Option4": {},
}
],
"SomeField":"None"
...

}
"Object2": {
"Table": [
{"field1":["El1", "El2"]}
...
]
},
"Object3": : {
"Table": [
{"field1":["El1", "El2"]}
...
]
},
"Object4": {
"Table": [
{"field1":["El1", "El2"]}
...
]
}
}

Can this be done with [login to view URL] Need a light weight solution.

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

  • Samrat0
    Samrat0
    • 1 month ago

    please check and determine that price #1

    • 1 month ago
  • StrongDecs
    StrongDecs
    • 1 month ago

    Hi, Increase price pls. Thanks,

    • 1 month ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!