public override bool Equals(object obj) { if (obj.GetType() != typeof(ClassWithLazy)) { return(false); } var target = obj as ClassWithLazy; return(Id == target.Id && SimpleClass.NullOrEquals(target.SimpleClass)); }
public override bool Equals(object obj) { if (obj.GetType() != typeof(ClassWithComplexFuncMappings)) { return(false); } var target = obj as ClassWithComplexFuncMappings; return(VerySimpleClasses.EnumerableEquals(target.VerySimpleClasses) && VerySimpleClass.NullOrEquals(target.VerySimpleClass) && AString == target.AString && ADate == target.ADate && AStruct == target.AStruct); }
protected internal bool _Equals(object obj) { var target = obj as SimpleClass; return(Key == target.Key && Integer == target.Integer && String == target.String && Date == target.Date && Date_Plus_2 == target.Date_Plus_2 && NullableDate == target.NullableDate && OtherDate == target.OtherDate && Bool == target.Bool && IntArray.EnumerableEquals(target.IntArray) && VerySimpleClass.NullOrEquals(target.VerySimpleClass) && VerySimpleClass2String == target.VerySimpleClass2String); }