コード例 #1
0
        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));
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: SimpleClass.cs プロジェクト: mlhuong/HMapper
        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);
        }