Пример #1
0
        public bool IsEquals(object?x, object?y)
        {
            if (Equals(x, y))
            {
                return(true);
            }

            if (x == null || y == null)
            {
                return(false);
            }

            var type = x.GetType();

            if (type != y.GetType())
            {
                return(false);
            }

            var inner = SimpleEquals.BuildInner(type);

            return(inner.IsEquals(x, y));
        }
Пример #2
0
 public bool DeepEquals(RuleAction action)
 {
     return(SimpleEquals.IsEquals(this, action));
 }
Пример #3
0
 public bool DeepEquals(SchemaProperties properties)
 {
     return(SimpleEquals.IsEquals(this, properties));
 }
Пример #4
0
 public DeepEqualityComparer(IDeepComparer?comparer = null)
 {
     this.comparer = comparer ?? SimpleEquals.Build(typeof(T));
 }