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.
|