Exemple #1
0
        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);
        }
Exemple #2
0
 public SimpleClass(Business.SimpleClass simpleClass)
 {
     Key                    = simpleClass.Id;
     Integer                = simpleClass.Integer;
     String                 = simpleClass.String;
     Date                   = simpleClass.Date;
     NullableDate           = simpleClass.NullableDate;
     OtherDate              = simpleClass.OtherDate;
     Bool                   = simpleClass.Bool;
     IntArray               = simpleClass.IntArray;
     Date_Plus_2            = simpleClass.Date.AddDays(2);
     VerySimpleClass2String = simpleClass.VerySimpleClass2?.MyString;
     if (simpleClass.VerySimpleClass != null)
     {
         VerySimpleClass = new VerySimpleClass(simpleClass.VerySimpleClass);
     }
 }
Exemple #3
0
 public ClassWithLazy(Business.ClassWithLazy source)
 {
     Id          = source.Id;
     SimpleClass = new VerySimpleClass(source.LazySimpleClass.Value);
 }
 public ClassWithAsyncCallToMapper()
 {
     SimpleClass = GetClass().GetAwaiter().GetResult();
 }