Comparing a property with same name in parent and child classes.

Apr 12, 2012 at 11:00 AM
Edited Apr 18, 2012 at 1:23 PM

Hi Greg,

In the sample below:

public class firstClass{

public firstClass()

{

this.secondClassCollection=new Hashset<secondClass>();

}

public int statusId{get; set;}

public string Name{get; set;}

public ICollection <secondClass> secondClassCollection {get; set;}

}

public class secondClass{

public int statusId{get; set;}

}

Now, while comparing two Objects of Class A, how can I Ignore comparing statusId of firstClass and comparing the statusId of secondClass. 

Coordinator
Apr 12, 2012 at 11:25 AM

It is not possible to do this with the library.

Apr 13, 2012 at 4:58 AM

Thanks.

Apr 18, 2012 at 1:24 PM
Edited Apr 18, 2012 at 1:25 PM

Hi Greg

I forgot to ask, Is there an alternative or workaround for the above mentioned problem.

Coordinator
Apr 18, 2012 at 2:19 PM

I can create an extension for you with custom code for your project.  If you would like this; please pay $500 via PayPal to sales@kellermansoftware.com