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); }
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); } }
public ClassWithLazy(Business.ClassWithLazy source) { Id = source.Id; SimpleClass = new VerySimpleClass(source.LazySimpleClass.Value); }
public ClassWithAsyncCallToMapper() { SimpleClass = GetClass().GetAwaiter().GetResult(); }