Apr 18, 2012 at 1:57 PM
Edited Apr 18, 2012 at 1:57 PM
|
Hi Greg,
In the sample mentioned 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 Id{get; set;}
}
I am able to ignore comparing the secondClassCollection property while comparing the objects of the firstClass by using
ElementsToIgnore.Add("secondClass") or by using AttributesToIgnore.Add(typeof(secondClass)).
Could you please tell me which of these is the correct approach for ignoring comparing the secondClassCollection property while comparing the objects of the firstClass.
|